Handle request_many() not returning a Response for a url

This commit is contained in:
jesopo 2019-07-08 13:25:25 +01:00
parent b62ba469d7
commit c60edabd74

View file

@ -42,6 +42,10 @@ class Module(ModuleManager.BaseModule):
pages = utils.http.request_many(hooks.keys())
for url, channels in hooks.items():
if not url in pages:
# async url get failed
continue
feed = feedparser.parse(pages[url].data)
feed_title = feed["feed"].get("title", None)
entry_formatted = {}