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

svn: r8626
This commit is contained in:
Brian Matherly 2007-06-22 13:19:52 +00:00
parent 336cd588e6
commit da83135ac2
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

@ -661,7 +661,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