* src/ReportBase/_ReportDialog.py (report): catch IOError

svn: r6969
This commit is contained in:
Don Allingham 2006-06-27 05:12:21 +00:00
parent 1aea8327ab
commit 60d21403a7
2 changed files with 3 additions and 0 deletions

View File

@ -1,4 +1,5 @@
2006-06-26 Don Allingham <don@gramps-project.org>
* src/ReportBase/_ReportDialog.py (report): catch IOError
* src/Filters/Rules/Person/_HasDeath.py: use references instead of
handles

View File

@ -647,6 +647,8 @@ def report(dbstate,uistate,person,report_class,options_class,
except Errors.FilterError, msg:
(m1,m2) = msg.messages()
ErrorDialog(m1,m2)
except IOError, msg:
ErrorDialog(_("Report could not be created"),str(msg))
except Errors.ReportError, msg:
(m1,m2) = msg.messages()
ErrorDialog(m1,m2)