added bounding box to the chart

This commit is contained in:
UpstreamData
2022-03-02 12:15:46 -07:00
parent 85569366a2
commit 322ee05fdf
2 changed files with 125 additions and 8 deletions

View File

@@ -64,9 +64,11 @@ async def miner_websocket(websocket: WebSocket, miner_ip):
except asyncio.exceptions.TimeoutError:
data = {"error": "The miner is not responding."}
await websocket.send_json(data)
await asyncio.sleep(.5)
except KeyError:
data = {"error": "The miner returned incorrect data."}
await websocket.send_json(data)
await asyncio.sleep(.5)
except WebSocketDisconnect:
print("Websocket disconnected.")
pass