feeds: fix bug when deleting attr in html

master
pictuga 2020-04-24 22:12:05 +02:00
parent 6a0531ca03
commit 59ef5af9e2
1 changed files with 2 additions and 1 deletions

View File

@ -401,7 +401,8 @@ class ParserXML(ParserBase):
return return
elif key is not None: elif key is not None:
del x.attrib[key] if key in match.attrib:
del match.attrib[key]
else: else:
match.getparent().remove(match) match.getparent().remove(match)