From d482638d5fa28fc31078cf8346cbd543ee7d82ea Mon Sep 17 00:00:00 2001 From: jibanez-staticduo Date: Wed, 9 Sep 2026 12:15:25 +0200 Subject: [PATCH] chore(chatgpt): document custom hook rejection handling --- litellm/proxy/realtime_endpoints/call_sessions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/realtime_endpoints/call_sessions.py b/litellm/proxy/realtime_endpoints/call_sessions.py index 2ea723335ee..a02c114bcab 100644 --- a/litellm/proxy/realtime_endpoints/call_sessions.py +++ b/litellm/proxy/realtime_endpoints/call_sessions.py @@ -195,7 +195,7 @@ async def codex_realtime_sideband(websocket: WebSocket, token: str, auth: UserAP } try: processed: Final = await process_codex_request(request, data, auth, call.alias, "_arealtime") - except Exception: + except Exception: # noqa: BLE001 # user-defined pre-call hooks may raise any exception; always reject the connection verbose_proxy_logger.exception("Realtime sideband pre-call rejected") await websocket.close(code=1008, reason="Realtime pre-call rejected") return