From da83135ac2a8598e6fe839969120357ec0ee3156 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Fri, 22 Jun 2007 13:19:52 +0000 Subject: [PATCH] src/ReportBase/_ReportDialog.py: Still let REAL exceptions pass through. svn: r8626 --- ChangeLog | 3 +++ src/ReportBase/_ReportDialog.py | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2cb7f5dc3..84cd05dcc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2007-06-22 Brian Matherly + * src/ReportBase/_ReportDialog.py: Still let REAL exceptions pass through. + 2007-06-22 Brian Matherly * src/docgen/Pdfdoc.py: 0001055: Pictures of the gallery are not used in the detailed ancestor's report when output format is PDF diff --git a/src/ReportBase/_ReportDialog.py b/src/ReportBase/_ReportDialog.py index 4a3f92d78..124e9bc0b 100644 --- a/src/ReportBase/_ReportDialog.py +++ b/src/ReportBase/_ReportDialog.py @@ -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