mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
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:
parent
690b2e7d58
commit
55e41b05cb
1 changed files with 1 additions and 5 deletions
|
|
@ -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),
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue