diff options
Diffstat (limited to 'src/utils/http.py')
| -rw-r--r-- | src/utils/http.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/utils/http.py b/src/utils/http.py index 531c24fc..a8e8f05e 100644 --- a/src/utils/http.py +++ b/src/utils/http.py @@ -121,7 +121,12 @@ def request_many(urls: typing.List[str]) -> typing.Dict[str, Response]: client = tornado.httpclient.AsyncHTTPClient() request = tornado.httpclient.HTTPRequest(url, method="GET", connect_timeout=2, request_timeout=2) - response = await client.fetch(request) + + response = None + try: + response = await client.fetch(request) + except: + return headers = utils.CaseInsensitiveDict(dict(response.headers)) data = response.body.decode("utf8") |
