aboutsummaryrefslogtreecommitdiff
path: root/src/utils/http.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-07-08 13:51:02 +0100
committerGravatar jesopo2019-07-08 13:51:02 +0100
commit81c7af8ab5886992e9b0d3e2875cea73903c8af7 (patch)
tree2d5c2375b30362218b849fe3df615a6f08c4da26 /src/utils/http.py
parentswitch request_many() to use asyncio.gather (diff)
signature
Don't try/except async http exceptions
Diffstat (limited to 'src/utils/http.py')
-rw-r--r--src/utils/http.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/utils/http.py b/src/utils/http.py
index 9eab10da..15f371fe 100644
--- a/src/utils/http.py
+++ b/src/utils/http.py
@@ -121,11 +121,7 @@ def request_many(urls: typing.List[str]) -> typing.Dict[str, Response]:
request = tornado.httpclient.HTTPRequest(url, method="GET",
connect_timeout=2, request_timeout=2)
- response = None
- try:
- response = await client.fetch(request)
- except:
- return
+ response = await client.fetch(request)
headers = utils.CaseInsensitiveDict(dict(response.headers))
data = response.body.decode("utf8")