mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
fix: guard rate_limit_category extraction with isinstance check
This commit is contained in:
parent
5a10a75402
commit
113783ee89
1 changed files with 1 additions and 1 deletions
|
|
@ -5165,7 +5165,7 @@ class StandardLoggingPayloadSetup:
|
|||
# reaching for the raw exception object.
|
||||
rate_limit_category: Optional[str] = (
|
||||
getattr(original_exception, "category", None)
|
||||
if original_exception is not None
|
||||
if isinstance(original_exception, litellm.RateLimitError)
|
||||
else None
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue