From 20f414a7f51e7a7c402e5bf53b2f01a9d5fe8afc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 1 Aug 2013 09:10:40 +0530 Subject: [PATCH] Avoid unnecessary tracebacks when backing up metadata for deleted books --- src/calibre/db/backup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/db/backup.py b/src/calibre/db/backup.py index 1a6ff13412..f0f2b07a54 100644 --- a/src/calibre/db/backup.py +++ b/src/calibre/db/backup.py @@ -81,6 +81,7 @@ class MetadataBackup(Thread): if mi is None: self.db.clear_dirtied(book_id, sequence) + return # Give the GUI thread a chance to do something. Python threads don't # have priorities, so this thread would naturally keep the processor