Address a situation which causes many asyncio errors
This commit is contained in:
@@ -476,7 +476,7 @@ class MinerFactory:
|
|||||||
try:
|
try:
|
||||||
resp = await session.get(url, follow_redirects=False)
|
resp = await session.get(url, follow_redirects=False)
|
||||||
return resp.text, resp
|
return resp.text, resp
|
||||||
except (httpx.HTTPError, asyncio.TimeoutError, anyio.EndOfStream):
|
except (httpx.HTTPError, asyncio.TimeoutError, anyio.EndOfStream, anyio.ClosedResourceError):
|
||||||
pass
|
pass
|
||||||
return None, None
|
return None, None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user