From 5d92cfadd1ddbee5abd45208190ceb4955857d6a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 5 Sep 2020 05:40:15 +0530 Subject: [PATCH] Avoid printing traceback if checking for dirtied annotations fails during shutdown --- src/calibre/db/backup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/db/backup.py b/src/calibre/db/backup.py index db9e4931c9..2218956ba9 100644 --- a/src/calibre/db/backup.py +++ b/src/calibre/db/backup.py @@ -62,6 +62,8 @@ class MetadataBackup(Thread): try: self.db.check_dirtied_annotations() except Exception: + if self.stop_running.is_set(): + return traceback.print_exc() try: book_id = self.db.get_a_dirtied_book()