Address a situation which causes many asyncio errors

This commit is contained in:
Colin Crossman
2023-11-11 13:49:51 -07:00
parent d41097af20
commit 60f4b4a5ed

View File

@@ -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