mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Avoid printing traceback if checking for dirtied annotations fails during shutdown
This commit is contained in:
parent
374edd1ff7
commit
5d92cfadd1
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user