WARN log when a RSS feed throws in _check_url

This commit is contained in:
jesopo 2019-07-04 11:21:53 +01:00
parent 130b5d1927
commit 6014a2b0da

View file

@ -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