From d5f352823b9dcb34707722e66ad6e11ae5ef8178 Mon Sep 17 00:00:00 2001 From: jibanez-staticduo Date: Wed, 9 Sep 2026 12:16:23 +0200 Subject: [PATCH] style(chatgpt): keep hook rationale within line limit --- 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 a02c114bcab..f0105ea6cfd 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: # noqa: BLE001 # user-defined pre-call hooks may raise any exception; always reject the connection + except Exception: # noqa: BLE001 # custom hook exceptions must reject the connection verbose_proxy_logger.exception("Realtime sideband pre-call rejected") await websocket.close(code=1008, reason="Realtime pre-call rejected") return