Don't try/except async http exceptions
This commit is contained in:
parent
ee0ec0eca1
commit
81c7af8ab5
1 changed files with 1 additions and 5 deletions
|
@ -121,11 +121,7 @@ def request_many(urls: typing.List[str]) -> typing.Dict[str, Response]:
|
||||||
request = tornado.httpclient.HTTPRequest(url, method="GET",
|
request = tornado.httpclient.HTTPRequest(url, method="GET",
|
||||||
connect_timeout=2, request_timeout=2)
|
connect_timeout=2, request_timeout=2)
|
||||||
|
|
||||||
response = None
|
response = await client.fetch(request)
|
||||||
try:
|
|
||||||
response = await client.fetch(request)
|
|
||||||
except:
|
|
||||||
return
|
|
||||||
|
|
||||||
headers = utils.CaseInsensitiveDict(dict(response.headers))
|
headers = utils.CaseInsensitiveDict(dict(response.headers))
|
||||||
data = response.body.decode("utf8")
|
data = response.body.decode("utf8")
|
||||||
|
|
Loading…
Reference in a new issue