From 392afc7056f04d09bab63ac9692e0122bab080a8 Mon Sep 17 00:00:00 2001 From: moe-berri Date: Fri, 30 Oct 2026 00:58:12 -0700 Subject: [PATCH] chore(mcp): document cancellation error boundary --- litellm/proxy/mcp_server/code_execution.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/litellm/proxy/mcp_server/code_execution.py b/litellm/proxy/mcp_server/code_execution.py index 3085b0d810d..4382a089eb6 100644 --- a/litellm/proxy/mcp_server/code_execution.py +++ b/litellm/proxy/mcp_server/code_execution.py @@ -170,8 +170,7 @@ async def cleanup_cancelled_call(data: Mapping[str, object], caller: UserAPIKeyA user_api_key_dict=caller, route="/mcp/call_tool", ) - except Exception: - # A callback failure must not replace the client's cancellation. + except Exception: # noqa: BLE001 # Callback failures must not replace cancellation. verbose_proxy_logger.error("MCP code cancellation cleanup failed")