Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix(auth): exempt org lookup fallback from strict lint

jesuscc875a6eb38a
diff --git a/litellm/proxy/auth/user_api_key_auth.py b/litellm/proxy/auth/user_api_key_auth.py
index ac1cc3cfb35..17498467485 100644
--- a/litellm/proxy/auth/user_api_key_auth.py
+++ b/litellm/proxy/auth/user_api_key_auth.py
@@ -1309,7 +1309,7 @@ def _ensure_litellm_received_at_on_request_state(request: Request) -> datetime:
received_at: Final = datetime.now(timezone.utc)
try:
request.state.litellm_received_at = received_at
- except Exception:
+ except Exception: # noqa: BLE001 # organization lookup must not fail authentication
pass
return received_at