feeds: fix an error when no match
This commit is contained in:
@@ -343,7 +343,7 @@ class ParserXML(ParserBase):
|
|||||||
match.attrib[key] = value
|
match.attrib[key] = value
|
||||||
|
|
||||||
else:
|
else:
|
||||||
if len(match):
|
if match is not None and len(match):
|
||||||
# atom stuff
|
# atom stuff
|
||||||
self._clean_node(match)
|
self._clean_node(match)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user