Avoid printing traceback if checking for dirtied annotations fails during shutdown

This commit is contained in:
Kovid Goyal 2020-09-05 05:40:15 +05:30
parent 374edd1ff7
commit 5d92cfadd1
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -62,6 +62,8 @@ class MetadataBackup(Thread):
try: try:
self.db.check_dirtied_annotations() self.db.check_dirtied_annotations()
except Exception: except Exception:
if self.stop_running.is_set():
return
traceback.print_exc() traceback.print_exc()
try: try:
book_id = self.db.get_a_dirtied_book() book_id = self.db.get_a_dirtied_book()