feeds: fix remove function in case of no match
parent
4fb98bc2ed
commit
966559bdd3
|
@ -328,7 +328,10 @@ class ParserXML(ParserBase):
|
||||||
|
|
||||||
match = self.rule_search(rule)
|
match = self.rule_search(rule)
|
||||||
|
|
||||||
if key is not None:
|
if match is None:
|
||||||
|
return
|
||||||
|
|
||||||
|
elif key is not None:
|
||||||
del x.attrib[key]
|
del x.attrib[key]
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue