This commit is contained in:
Kovid Goyal 2011-04-28 08:13:16 -06:00
parent df074821c4
commit c2a7d26b51

View File

@ -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