* src/GenericFilter.py (FilterParser.startElement): Catch non existing filter rule and print an error message

svn: r4325
This commit is contained in:
Martin Hawlisch
2005-04-08 18:52:05 +00:00
parent 43ace45a9c
commit a83de42a94
2 changed files with 7 additions and 1 deletions

View File

@@ -2336,7 +2336,10 @@ class FilterParser(handler.ContentHandler):
cname = attrs['class']
name = unicode(_(cname))
self.a = []
self.cname = tasks[name]
if name in tasks:
self.cname = tasks[name]
else:
print "ERROR: Filter rule '%s' in filter '%s' not found!" % (name,self.f.get_name())
elif tag == "arg":
self.a.append(attrs['value'])