src/ReportBase/_ReportDialog.py: Still let REAL exceptions pass through.

svn: r8624
This commit is contained in:
Brian Matherly 2007-06-22 12:21:49 +00:00
parent 605d6a20ea
commit fd8e5b0a06
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,6 @@
2007-06-22 Brian Matherly <brian@gramps-project.org>
* src/ReportBase/_ReportDialog.py: Still let REAL exceptions pass through.
2007-06-22 Brian Matherly <brian@gramps-project.org>
* src/docgen/Pdfdoc.py: 0001055: Pictures of the gallery are not used in the
detailed ancestor's report when output format is PDF

View File

@ -697,7 +697,12 @@ def report(dbstate,uistate,person,report_class,options_class,
except Errors.DatabaseError,msg:
ErrorDialog(_("Report could not be created"),str(msg))
except AttributeError,msg:
RunDatabaseRepair(str(msg))
if str(msg).startswith("None"):
# "None object type has no attribute . . . " usually means
# database corruption
RunDatabaseRepair(str(msg))
else:
raise
except:
log.error("Failed to run report.", exc_info=True)
break