Handle request_many() not returning a Response for a url
This commit is contained in:
parent
b62ba469d7
commit
c60edabd74
1 changed files with 4 additions and 0 deletions
|
@ -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 = {}
|
||||
|
|
Loading…
Reference in a new issue