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