Fix TypeError: 'InitNewSection' object has no attribute
This commit is contained in:
parent
facf2d5e2d
commit
01fc08b027
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ class ProcessMetadata(backgroundthread.KillableThread, common.libsync_mixin):
|
|||
while self.isCanceled() is False:
|
||||
# grabs item from queue. This will block!
|
||||
item = self.queue.get()
|
||||
if item is InitNewSection or item is None:
|
||||
if isinstance(item, InitNewSection) or item is None:
|
||||
section = item
|
||||
self.queue.task_done()
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue