* 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 02e3da53dd
commit 9d760ccad0
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>
* src/GrampsDb/_ReadGedcom.py: fix cal/est parsing
* 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):
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