diff --git a/ChangeLog b/ChangeLog index 5a706a1c5..fb98fcd9f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2007-06-23 Brian Matherly + * src/ReportBase/_ReportDialog.py: Fix attribute error exceptions. + 2007-06-23 Brian Matherly * src/plugins/NarrativeWeb.py: 0001016: [narrative website] Why is the mime type shown on each image page diff --git a/src/ReportBase/_ReportDialog.py b/src/ReportBase/_ReportDialog.py index b26b0d718..ad8bbfe5d 100644 --- a/src/ReportBase/_ReportDialog.py +++ b/src/ReportBase/_ReportDialog.py @@ -697,8 +697,8 @@ def report(dbstate,uistate,person,report_class,options_class, except Errors.DatabaseError,msg: ErrorDialog(_("Report could not be created"),str(msg)) except AttributeError,msg: - if str(msg).startswith("None"): - # "None object type has no attribute . . . " usually means + if str(msg).startswith("'NoneType' object has no attribute"): + # "'NoneType' object has no attribute ..." usually means # database corruption RunDatabaseRepair(str(msg)) else: