seems i completely forgot try/except syntax

This commit is contained in:
jesopo 2019-06-27 18:21:07 +01:00
parent 95537378b4
commit 9c5c8cf563

View file

@ -39,7 +39,7 @@ 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 e: except Exception as e:
self.log.warn("Failed to GET RSS for %s: %s", self.log.warn("Failed to GET RSS for %s: %s",
[url, str(e)]) [url, str(e)])
return return