[#106 state:fixed] I couldn't find the root cause of the problem, but I wrapped it anyway...

This commit is contained in:
Virgil Dupras 2010-09-24 09:56:08 +02:00
parent 361d4698a9
commit 9bd093a03c
1 changed files with 7 additions and 1 deletions

View File

@ -127,7 +127,13 @@ class PyDupeGuruBase(PyRegistrable):
#---Worker
def getJobProgress(self):
return self.py.progress.last_progress
try:
return self.py.progress.last_progress
except AttributeError:
# I have *no idea* why this can possible happen (last_progress is always set by
# create_job() *before* any threaded job notification, which shows the progress panel,
# is sent), but it happens anyway, so there we go.
return -1
def getJobDesc(self):
return self.py.progress.last_desc