style(proxy): satisfy ruff format in _log_llm_api_exception

Collapse the extra dict ternary onto one line to match ruff's formatting so the
lint gate passes.

Signed-off-by: chjnett <cheonhyeonjun583@gmail.com>
This commit is contained in:
chjnett 2026-08-27 16:35:53 +09:00
parent 690b2e7d58
commit 55e41b05cb
No known key found for this signature in database

View file

@ -1432,11 +1432,7 @@ def _log_llm_api_exception(e: Exception, litellm_call_id: str | None = None) ->
log_fn(
"litellm.proxy.proxy_server._handle_llm_api_exception(): Exception occured - %s",
e,
extra=(
{"litellm_call_id": litellm_call_id}
if litellm_call_id is not None
else None
),
extra=({"litellm_call_id": litellm_call_id} if litellm_call_id is not None else None),
)