From 6014a2b0da8944860fd97a2c0dda4c5c93e17c8d Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 4 Jul 2019 11:21:53 +0100 Subject: [PATCH] WARN log when a RSS feed throws in _check_url --- modules/rss.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/rss.py b/modules/rss.py index b0d14c27..d2aa60a4 100644 --- a/modules/rss.py +++ b/modules/rss.py @@ -79,7 +79,8 @@ class Module(ModuleManager.BaseModule): try: data = utils.http.request(url) feed = feedparser.parse(data.data) - except: + except Exception as e: + self.log.warn("failed to parse RSS %s", [url], exc_info=True) feed = None if not feed or not feed["feed"]: return None