fix: suppress noisy WS keepalive timeout tracebacks

This commit is contained in:
2026-07-25 21:26:58 +08:00
parent 7bafe73d6d
commit a51cec79c1
+2 -2
View File
@@ -96,8 +96,8 @@ async def websocket_endpoint(ws: WebSocket):
await ws.send_json({"type": "pong"}) await ws.send_json({"type": "pong"})
except WebSocketDisconnect: except WebSocketDisconnect:
pass pass
except Exception as e: except Exception:
logger.error("WS error: %s", e) pass
finally: finally:
ws_manager.disconnect(cid) ws_manager.disconnect(cid)