bug: fix bug with read timeout not being caught when sending graphql query
This commit is contained in:
@@ -83,7 +83,7 @@ class BOSMiner(BaseMiner):
|
|||||||
d = await client.post(url, json={"query": query})
|
d = await client.post(url, json={"query": query})
|
||||||
if d.status_code == 200:
|
if d.status_code == 200:
|
||||||
return d.json()
|
return d.json()
|
||||||
except httpx.ReadError:
|
except (httpx.ReadError, httpx.ReadTimeout):
|
||||||
return None
|
return None
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user