bug: fix bug with read timeout not being caught when sending graphql query

This commit is contained in:
UpstreamData
2022-11-14 13:49:57 -07:00
parent 2d4bf4e847
commit 198a480c35

View File

@@ -83,7 +83,7 @@ class BOSMiner(BaseMiner):
d = await client.post(url, json={"query": query})
if d.status_code == 200:
return d.json()
except httpx.ReadError:
except (httpx.ReadError, httpx.ReadTimeout):
return None
return None