From e8e7db248b2382aa3bc06724ecf993b39d221a14 Mon Sep 17 00:00:00 2001 From: vivekvar-dl Date: Sat, 8 Aug 2026 13:54:57 +0530 Subject: [PATCH] fix(proxy): suppress BLE001 on upstream close guard to stay within strict budget --- litellm/proxy/pass_through_endpoints/streaming_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/pass_through_endpoints/streaming_handler.py b/litellm/proxy/pass_through_endpoints/streaming_handler.py index f77fcb98fbd..15f4a81f3b4 100644 --- a/litellm/proxy/pass_through_endpoints/streaming_handler.py +++ b/litellm/proxy/pass_through_endpoints/streaming_handler.py @@ -119,7 +119,7 @@ class PassThroughStreamingHandler: verbose_proxy_logger.error("Error scheduling chunk_processor logging: %s", e) try: await response.aclose() - except Exception as e: + except Exception as e: # noqa: BLE001 # closing a possibly-broken transport must not mask stream teardown verbose_proxy_logger.debug("Error closing passthrough upstream response: %s", e) @staticmethod