From c2a7d26b5147bcbffcf423f995af23107acbe425 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 28 Apr 2011 08:13:16 -0600 Subject: [PATCH] ... --- src/calibre/gui2/threaded_jobs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/threaded_jobs.py b/src/calibre/gui2/threaded_jobs.py index eb8667a713..9e16f88a1a 100644 --- a/src/calibre/gui2/threaded_jobs.py +++ b/src/calibre/gui2/threaded_jobs.py @@ -100,7 +100,8 @@ class ThreadedJob(BaseJob): try: self.consolidate_log() except: - self.log.exception('Log consolidation failed') + if self.log is not None: + self.log.exception('Log consolidation failed') # No need to keep references to these around anymore self.func = self.args = self.kwargs = self.notifications = None