From 3231afb84d822f7b91db8210d789945f204c10e8 Mon Sep 17 00:00:00 2001 From: Ivan Date: Mon, 1 Dec 2025 12:00:00 -0600 Subject: [PATCH] fix: improve websocket error logging in ReticulumMeshChat - Updated error logging in websocket handling to use f-strings for better readability and consistency. --- meshchatx/meshchat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meshchatx/meshchat.py b/meshchatx/meshchat.py index 0ecaa01..f7b8a0d 100644 --- a/meshchatx/meshchat.py +++ b/meshchatx/meshchat.py @@ -1384,7 +1384,7 @@ class ReticulumMeshChat: print(e) elif msg.type == WSMsgType.ERROR: # ignore errors while handling message - print("ws connection error %s" % websocket_response.exception()) + print(f"ws connection error {websocket_response.exception()}") # websocket closed self.websocket_clients.remove(websocket_response) @@ -1707,7 +1707,7 @@ class ReticulumMeshChat: print(e) elif msg.type == WSMsgType.ERROR: # ignore errors while handling message - print("ws connection error %s" % websocket_response.exception()) + print(f"ws connection error {websocket_response.exception()}") # unregister audio packet handler now that the websocket has been closed audio_call.register_audio_packet_listener(on_audio_packet)