We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ba0683 commit 6a1c5a6Copy full SHA for 6a1c5a6
src/murfey/server/websocket.py
@@ -41,6 +41,9 @@ async def connect(
41
42
@staticmethod
43
def _register_new_client(client_id: int):
44
+ if not isinstance(client_id, int):
45
+ raise TypeError("'client_id' was not an 'int'")
46
+ return None
47
log.debug(f"Registering new client with ID {client_id}")
48
new_client = ClientEnvironment(client_id=client_id, connected=True)
49
murfey_db: Session = next(get_murfey_db_session())
0 commit comments