* src/ReportBase/_ReportDialog.py: 0000905: Typo in catching exceptions in buggy reports

svn: r8067
This commit is contained in:
Brian Matherly 2007-02-07 04:00:49 +00:00
parent 4be7ac543c
commit 5b58023ce6
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2007-02-06 Douglas Blank <dblank@cs.brynmawr.edu>
* src/ReportBase/_ReportDialog.py: 0000905: Typo in catching exceptions in
buggy reports
2007-02-06 Don Allingham <don@gramps-project.org> 2007-02-06 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_ReadGedcom.py: fix cal/est parsing * src/GrampsDb/_ReadGedcom.py: fix cal/est parsing
* src/DisplayTabs/_ButtonTab.py: catch window already being open * src/DisplayTabs/_ButtonTab.py: catch window already being open

View File

@ -667,11 +667,11 @@ def report(dbstate,uistate,person,report_class,options_class,
elif category in (CATEGORY_BOOK,CATEGORY_CODE,CATEGORY_VIEW,CATEGORY_WEB): elif category in (CATEGORY_BOOK,CATEGORY_CODE,CATEGORY_VIEW,CATEGORY_WEB):
try: try:
report_class(dbstate,uistate,person) report_class(dbstate,uistate,person)
except Error, msg:
ErrorDialog(_("Error generating report"),
str(msg))
except Errors.WindowActiveError: except Errors.WindowActiveError:
pass pass
except Exception, msg:
ErrorDialog(_("Error generating report"),
str(msg))
return return
else: else:
dialog_class = ReportDialog dialog_class = ReportDialog