Only show Exception message when rss feeds fail
This commit is contained in:
parent
14b7a8ae11
commit
95537378b4
1 changed files with 3 additions and 3 deletions
|
@ -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"]
|
||||||
|
|
Loading…
Reference in a new issue