* src/ReportBase/_ReportDialog.py (report): catch IOError
svn: r6969
This commit is contained in:
parent
523062dbe4
commit
0d445ff813
@ -1,4 +1,5 @@
|
|||||||
2006-06-26 Don Allingham <don@gramps-project.org>
|
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
|
* src/Filters/Rules/Person/_HasDeath.py: use references instead of
|
||||||
handles
|
handles
|
||||||
|
|
||||||
|
@ -647,6 +647,8 @@ def report(dbstate,uistate,person,report_class,options_class,
|
|||||||
except Errors.FilterError, msg:
|
except Errors.FilterError, msg:
|
||||||
(m1,m2) = msg.messages()
|
(m1,m2) = msg.messages()
|
||||||
ErrorDialog(m1,m2)
|
ErrorDialog(m1,m2)
|
||||||
|
except IOError, msg:
|
||||||
|
ErrorDialog(_("Report could not be created"),str(msg))
|
||||||
except Errors.ReportError, msg:
|
except Errors.ReportError, msg:
|
||||||
(m1,m2) = msg.messages()
|
(m1,m2) = msg.messages()
|
||||||
ErrorDialog(m1,m2)
|
ErrorDialog(m1,m2)
|
||||||
|
Loading…
Reference in New Issue
Block a user