From c5d8b064aed7f7ac3bc8f877ba67bd47ccc2cefc Mon Sep 17 00:00:00 2001 From: pictuga Date: Sun, 11 Nov 2018 15:31:46 +0100 Subject: [PATCH] feeds: fix an error when no match --- morss/feeds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss/feeds.py b/morss/feeds.py index b5231c3..bdb02e3 100644 --- a/morss/feeds.py +++ b/morss/feeds.py @@ -343,7 +343,7 @@ class ParserXML(ParserBase): match.attrib[key] = value else: - if len(match): + if match is not None and len(match): # atom stuff self._clean_node(match)