Fix ProgrammingError: Cannot operate on a closed database
This commit is contained in:
parent
45b3c0e3f5
commit
ce191f6eeb
1 changed files with 4 additions and 5 deletions
|
@ -108,11 +108,10 @@ class FullSync(common.libsync_mixin):
|
||||||
section['section_id'],
|
section['section_id'],
|
||||||
self.plex_type)
|
self.plex_type)
|
||||||
self.queue.put(queue_info)
|
self.queue.put(queue_info)
|
||||||
with PlexDB() as self.plexdb:
|
for xml_item in iterator:
|
||||||
for xml_item in iterator:
|
if self.isCanceled():
|
||||||
if self.isCanceled():
|
return False
|
||||||
return False
|
self.process_item(xml_item)
|
||||||
self.process_item(xml_item)
|
|
||||||
except RuntimeError:
|
except RuntimeError:
|
||||||
LOG.error('Could not entirely process section %s', section)
|
LOG.error('Could not entirely process section %s', section)
|
||||||
successful = False
|
successful = False
|
||||||
|
|
Loading…
Reference in a new issue