* src/plugins/WriteGedcom.py: catch filter exceptions

* src/GenericFilter.py: eliminate loop detection


svn: r1758
This commit is contained in:
Don Allingham
2003-06-18 02:50:30 +00:00
parent c03a84f036
commit ab9f5e2db8
2 changed files with 29 additions and 18 deletions

View File

@@ -53,6 +53,7 @@ import Julian
import Hebrew
import FrenchRepublic
import GedcomInfo
import Errors
import ansel_utf8
from intl import gettext as _
@@ -455,9 +456,14 @@ class GedcomWriter:
for p in self.db.getPersonKeys():
self.plist[p] = 1
else:
for p in cfilter.apply(self.db, self.db.getPersonMap().values()):
self.plist[p.getId()] = 1
try:
for p in cfilter.apply(self.db, self.db.getPersonMap().values()):
self.plist[p.getId()] = 1
except Errors.FilterError, msg:
(m1,m2) = msg.messages()
ErrorDialog(m1,m2)
return
self.flist = {}
self.slist = {}
for key in self.plist.keys():