From a1b4330c18e2fefc1b7ca3ff4652389da609aa8c Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Fri, 1 May 2026 21:05:50 -0700 Subject: [PATCH] fix: linting error --- litellm/proxy/hooks/proxy_track_cost_callback.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/litellm/proxy/hooks/proxy_track_cost_callback.py b/litellm/proxy/hooks/proxy_track_cost_callback.py index ad32b18a543..67f702e31a2 100644 --- a/litellm/proxy/hooks/proxy_track_cost_callback.py +++ b/litellm/proxy/hooks/proxy_track_cost_callback.py @@ -88,9 +88,7 @@ class _ProxyDBLogger(CustomLogger): # noisy ``"traceback": ""`` line. Downstream consumers all use # ``.get("traceback")`` / truthy checks, and the TypedDict marks # the field as optional, so omitting is type-safe. - _error_information = { - k: v for k, v in _error_information.items() if k != "traceback" - } + _error_information.pop("traceback", None) _metadata["error_information"] = _error_information _metadata = await _ProxyDBLogger._enrich_failure_metadata_with_key_info(