From 5b58023ce6019b068d0028c6766082c25e7cc336 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Wed, 7 Feb 2007 04:00:49 +0000 Subject: [PATCH] * src/ReportBase/_ReportDialog.py: 0000905: Typo in catching exceptions in buggy reports svn: r8067 --- gramps2/ChangeLog | 4 ++++ gramps2/src/ReportBase/_ReportDialog.py | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 89a5f5791..646a81fa4 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2007-02-06 Douglas Blank + * src/ReportBase/_ReportDialog.py: 0000905: Typo in catching exceptions in + buggy reports + 2007-02-06 Don Allingham * src/GrampsDb/_ReadGedcom.py: fix cal/est parsing * src/DisplayTabs/_ButtonTab.py: catch window already being open diff --git a/gramps2/src/ReportBase/_ReportDialog.py b/gramps2/src/ReportBase/_ReportDialog.py index 56bfac5cf..5fa73ee19 100644 --- a/gramps2/src/ReportBase/_ReportDialog.py +++ b/gramps2/src/ReportBase/_ReportDialog.py @@ -667,11 +667,11 @@ def report(dbstate,uistate,person,report_class,options_class, elif category in (CATEGORY_BOOK,CATEGORY_CODE,CATEGORY_VIEW,CATEGORY_WEB): try: report_class(dbstate,uistate,person) - except Error, msg: - ErrorDialog(_("Error generating report"), - str(msg)) except Errors.WindowActiveError: pass + except Exception, msg: + ErrorDialog(_("Error generating report"), + str(msg)) return else: dialog_class = ReportDialog