Fix UnboundLocalError

This commit is contained in:
croneter 2018-10-25 13:25:25 +02:00
parent 14f7b56b08
commit dfccefe2e8

View file

@ -110,9 +110,9 @@ class FullSync(backgroundthread.KillableThread, common.libsync_mixin):
"""
"""
LOG.debug('Start processing %ss', self.plex_type)
sections = (x for x in sections.SECTIONS
if x['plex_type'] == self.plex_type)
for section in sections:
sects = (x for x in sections.SECTIONS
if x['plex_type'] == self.plex_type)
for section in sects:
LOG.debug('Processing library section %s', section)
if self.isCanceled():
return False