fix: improve websocket error logging in ReticulumMeshChat

- Updated error logging in websocket handling to use f-strings for better readability and consistency.
This commit is contained in:
2025-12-01 12:00:00 -06:00
parent 3848613a41
commit 3231afb84d

View File

@@ -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)