Fix TypeError: 'InitNewSection' object has no attribute

This commit is contained in:
croneter 2018-10-28 16:50:00 +01:00
parent facf2d5e2d
commit 01fc08b027

View file

@ -89,7 +89,7 @@ class ProcessMetadata(backgroundthread.KillableThread, common.libsync_mixin):
while self.isCanceled() is False: while self.isCanceled() is False:
# grabs item from queue. This will block! # grabs item from queue. This will block!
item = self.queue.get() item = self.queue.get()
if item is InitNewSection or item is None: if isinstance(item, InitNewSection) or item is None:
section = item section = item
self.queue.task_done() self.queue.task_done()
break break