feeds: fix remove function in case of no match
This commit is contained in:
parent
4fb98bc2ed
commit
966559bdd3
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user