Skip to content

Commit

Permalink
dont do shit casts
Browse files Browse the repository at this point in the history
  • Loading branch information
makemake-kbo committed Jan 7, 2024
1 parent df3c01d commit 2a1cf8a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hrotti/websocket_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ async def accept_ws_request(info: BlockInfo, websocket: WebSocket):
data = await websocket.receive_json()
try:
request = RPCRequest(**data)
response_dict = handle_request(info, request)
await websocket.send_text(json.dumps(response_dict))
await websocket.send_json(handle_request(info, request))
except json.JSONDecodeError:
await websocket.send_text("Error: Invalid JSON")

0 comments on commit 2a1cf8a

Please sign in to comment.