Report error exceptions

svn: r1275
This commit is contained in:
Don Allingham
2003-01-29 04:43:12 +00:00
parent 8bf2913518
commit f830960278
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()