A natural language interface for computers
Use isinstance() instead of type() == for exception type checking
Replace `type(e) == litellm.exceptions.RateLimitError` with `isinstance(e, litellm.exceptions.RateLimitError)` for proper exception type checking. While technically different behavior (isinstance() supports inheritance while type() == requires exact match), isinstance() is the correct and more robust approach for exception handling. If litellm introduces subclasses of RateLimitError in the future, isinstance() will correctly catch them.
E
endolith committed
50171c8949c795db8e5b4e4d5124e5c41c7c47f4
Parent: 0070d75