mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-30 10:35:20 -04:00
...
This commit is contained in:
@@ -129,7 +129,7 @@ class ParseWorker(Thread):
|
||||
self.parse_items.clear()
|
||||
|
||||
def is_alive(self):
|
||||
return Thread.is_alive(self) or self.worker.is_alive()
|
||||
return Thread.is_alive(self) or (hasattr(self, 'worker') and self.worker.is_alive())
|
||||
|
||||
parse_worker = ParseWorker()
|
||||
# }}}
|
||||
|
||||
Reference in New Issue
Block a user