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

svn: r8066
This commit is contained in:
Brian Matherly 2007-02-07 03:59:43 +00:00
parent 9812710d87
commit 2461850cbc
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-05 Don Allingham <don@gramps-project.org>
* src/DataViews/_MediaView.py: view export support
* src/DataViews/_RepositoryView.py: view export support

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):
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