feeds: fix remove function in case of no match

master
pictuga 2018-11-11 16:33:36 +01:00
parent 4fb98bc2ed
commit 966559bdd3
1 changed files with 4 additions and 1 deletions

View File

@ -328,7 +328,10 @@ class ParserXML(ParserBase):
match = self.rule_search(rule)
if key is not None:
if match is None:
return
elif key is not None:
del x.attrib[key]
else: