Only show Exception message when rss feeds fail

This commit is contained in:
jesopo 2019-06-27 18:18:39 +01:00
parent 14b7a8ae11
commit 95537378b4

View file

@ -39,9 +39,9 @@ class Module(ModuleManager.BaseModule):
data = utils.http.request(url) data = utils.http.request(url)
feed = feedparser.parse(data.data) feed = feedparser.parse(data.data)
feed["feed"] or ValueError("Feed info empty") feed["feed"] or ValueError("Feed info empty")
except: except e:
self.log.warn("Failed to GET RSS for %s", [url], self.log.warn("Failed to GET RSS for %s: %s",
exc_info=True) [url, str(e)])
return return
feed_title = feed["feed"]["title"] feed_title = feed["feed"]["title"]