Catch loops in filters

svn: r1583
This commit is contained in:
Don Allingham
2003-05-23 04:08:03 +00:00
parent e259320e13
commit ea3423f181
16 changed files with 105 additions and 10 deletions

View File

@@ -268,7 +268,11 @@ class GraphVizDialog(Report.ReportDialog):
file = open(self.target_path,"w")
ind_list = self.filter.apply(self.db, self.db.getPersonMap().values())
try:
ind_list = self.filter.apply(self.db, self.db.getPersonMap().values())
except Errors.FilterError, msg:
(m1,m2) = msg.messages()
ErrorDialog(m1,m2)
write_dot(file, ind_list, self.orien, width, height,
self.tb_margin, self.lr_margin, self.hpages,