diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index e919b6b3e..3a2c3e8e1 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,4 +1,5 @@ 2006-06-26 Don Allingham + * src/ReportBase/_ReportDialog.py (report): catch IOError * src/Filters/Rules/Person/_HasDeath.py: use references instead of handles diff --git a/gramps2/src/ReportBase/_ReportDialog.py b/gramps2/src/ReportBase/_ReportDialog.py index 66f3c60a2..ccdd13f5c 100644 --- a/gramps2/src/ReportBase/_ReportDialog.py +++ b/gramps2/src/ReportBase/_ReportDialog.py @@ -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)