From 325a373e3e738b0d27c8064f4b880290baf79eaf Mon Sep 17 00:00:00 2001 From: pictuga Date: Mon, 20 Apr 2020 16:15:15 +0200 Subject: [PATCH] feeds: add SyntaxError catch --- morss/feeds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss/feeds.py b/morss/feeds.py index f20c0b6..70dad1c 100644 --- a/morss/feeds.py +++ b/morss/feeds.py @@ -100,7 +100,7 @@ def parse(data, url=None, mimetype=None, encoding=None): try: feed = parser(data, encoding=encoding) - except (ValueError): + except (ValueError, SyntaxError): # parsing did not work pass