src/ReportBase/_ReportDialog.py: Fix attribute error exceptions.
svn: r8635
This commit is contained in:
parent
e98d2e54e5
commit
fc3405615e
@ -1,3 +1,6 @@
|
|||||||
|
2007-06-23 Brian Matherly <brian@gramps-project.org>
|
||||||
|
* src/ReportBase/_ReportDialog.py: Fix attribute error exceptions.
|
||||||
|
|
||||||
2007-06-23 Brian Matherly <brian@gramps-project.org>
|
2007-06-23 Brian Matherly <brian@gramps-project.org>
|
||||||
* src/plugins/NarrativeWeb.py: 0001016: [narrative website] Why is the mime
|
* src/plugins/NarrativeWeb.py: 0001016: [narrative website] Why is the mime
|
||||||
type shown on each image page
|
type shown on each image page
|
||||||
|
@ -697,8 +697,8 @@ def report(dbstate,uistate,person,report_class,options_class,
|
|||||||
except Errors.DatabaseError,msg:
|
except Errors.DatabaseError,msg:
|
||||||
ErrorDialog(_("Report could not be created"),str(msg))
|
ErrorDialog(_("Report could not be created"),str(msg))
|
||||||
except AttributeError,msg:
|
except AttributeError,msg:
|
||||||
if str(msg).startswith("None"):
|
if str(msg).startswith("'NoneType' object has no attribute"):
|
||||||
# "None object type has no attribute . . . " usually means
|
# "'NoneType' object has no attribute ..." usually means
|
||||||
# database corruption
|
# database corruption
|
||||||
RunDatabaseRepair(str(msg))
|
RunDatabaseRepair(str(msg))
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user