Skip to content

Commit

Permalink
Remove unreachable code from 2.0.1 CSMS example. (#561)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmclarty authored Jan 9, 2024
1 parent 84cb2f2 commit efbcb17
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions examples/v201/central_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ async def on_connect(websocket, path):
try:
requested_protocols = websocket.request_headers["Sec-WebSocket-Protocol"]
except KeyError:
logging.info("Client hasn't requested any Subprotocol. " "Closing Connection")
return await websocket.close()
logging.error("Client hasn't requested any Subprotocol. Closing Connection")
return await websocket.close()
if websocket.subprotocol:
Expand Down

0 comments on commit efbcb17

Please sign in to comment.