From bee9c3319c6d954a21bcf1fb4a08359274d606f9 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Sat, 23 Jun 2007 14:28:13 +0000 Subject: [PATCH] src/ReportBase/_ReportDialog.py: Fix attribute error exceptions. svn: r8636 --- ChangeLog | 5 ++++- src/ReportBase/_ReportDialog.py | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index dbd704627..e494f1c67 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,11 @@ +2007-06-23 Brian Matherly + * src/ReportBase/_ReportDialog.py: Fix attribute error exceptions. + 2007-06-22 Don Allingham * src/DbManager.py: pylint fixes * src/glade/gramps.glade: widen with DbManager window -2007-06-23 Brian Matherly +2007-06-22 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 124e9bc0b..3d9283ec4 100644 --- a/src/ReportBase/_ReportDialog.py +++ b/src/ReportBase/_ReportDialog.py @@ -661,8 +661,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: