Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jschlyter committed Jun 27, 2024
1 parent 4e7626f commit b4eeb49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/wsmock.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ async def websocket_handler(request):
await ws.close()
else:
print(f"Unknown command: {msg.data}")
except asyncio.TimeoutError as exc:
except asyncio.TimeoutError:
if chargepoint.connected:
print("Sending status")
await chargepoint.send_status(ws)
except RuntimeError as exc:
except RuntimeError:
break

print("Websocket connection closed")
Expand Down

0 comments on commit b4eeb49

Please sign in to comment.