From 089bbf58d25f8d942cce44418308f30deef2ed98 Mon Sep 17 00:00:00 2001 From: wangjifeng Date: Fri, 24 Apr 2026 20:57:11 +0800 Subject: [PATCH] style: apply Black formatting to auth_exception_handler --- litellm/proxy/auth/auth_exception_handler.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/litellm/proxy/auth/auth_exception_handler.py b/litellm/proxy/auth/auth_exception_handler.py index 4285b7886f0..af048906650 100644 --- a/litellm/proxy/auth/auth_exception_handler.py +++ b/litellm/proxy/auth/auth_exception_handler.py @@ -81,9 +81,7 @@ class UserAPIKeyAuthExceptionHandler: # All other exceptions are unexpected and logged at ERROR with traceback. _is_expected_auth_failure = ( isinstance(e, ProxyException) and int(e.code) in (401, 403) - ) or ( - isinstance(e, HTTPException) and e.status_code in (401, 403) - ) + ) or (isinstance(e, HTTPException) and e.status_code in (401, 403)) if _is_expected_auth_failure: verbose_proxy_logger.warning( "litellm.proxy.proxy_server.user_api_key_auth(): Auth denied - {}\nRequester IP Address:{}".format(