Report error exceptions

svn: r1275
This commit is contained in:
Don Allingham
2003-01-29 04:43:12 +00:00
parent 16fa3b0b8f
commit 71ee24226d
16 changed files with 103 additions and 56 deletions

View File

@ -46,6 +46,7 @@ import TextDoc
import Report
import Errors
import FontScale
from QuestionDialog import ErrorDialog
from SubstKeywords import SubstKeywords
from intl import gettext as _
@ -255,6 +256,8 @@ class AncestorChartDialog(Report.DrawReportDialog):
MyReport = AncestorChart(self.db, self.person, self.target_path,
self.max_gen, self.doc, self.report_text)
MyReport.write_report()
except Errors.ReportError, msg:
ErrorDialog(str(msg))
except:
import DisplayTrace
DisplayTrace.DisplayTrace()