From c538ce3a46fb53d6cfc1e30be7013b2624a44202 Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Thu, 23 Dec 2021 20:26:37 +0000 Subject: [PATCH] Fix "STOPPED" message. --- websocket_server.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/websocket_server.py b/websocket_server.py index 90b1af8..413e20b 100644 --- a/websocket_server.py +++ b/websocket_server.py @@ -217,16 +217,12 @@ class WebsocketServer: parts = len(msg_split) source = msg_split[0] command = msg_split[1] + data = None if parts == 4: #status = msg_split[2] data = msg_split[3] elif parts == 3: data = msg_split[2] - else: - self.logger.log.exception( - "Invalid message size:", msg_split - ) - continue # TODO ENUM if source not in ["WEBSOCKET", "ALL"]: