From 81c7af8ab5886992e9b0d3e2875cea73903c8af7 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 8 Jul 2019 13:51:02 +0100 Subject: Don't try/except async http exceptions --- src/utils/http.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') 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") -- cgit v1.3.1-10-gc9f91