fix: suppress noisy WS keepalive timeout tracebacks
This commit is contained in:
1 parent
7bafe73d6d
commit
a51cec79c1
1 file changed
+2
-2
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user