src/ReportBase/_ReportDialog.py: Fix attribute error exceptions.
svn: r8636
This commit is contained in:
parent
9fc7370400
commit
bee9c3319c
@ -1,8 +1,11 @@
|
||||
2007-06-23 Brian Matherly <brian@gramps-project.org>
|
||||
* src/ReportBase/_ReportDialog.py: Fix attribute error exceptions.
|
||||
|
||||
2007-06-22 Don Allingham <don@gramps-project.org>
|
||||
* src/DbManager.py: pylint fixes
|
||||
* src/glade/gramps.glade: widen with DbManager window
|
||||
|
||||
2007-06-23 Brian Matherly <brian@gramps-project.org>
|
||||
2007-06-22 Brian Matherly <brian@gramps-project.org>
|
||||
* src/plugins/NarrativeWeb.py: 0001016: [narrative website] Why is the mime
|
||||
type shown on each image page
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user