Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkuzmik committed Dec 18, 2024
1 parent fbbd822 commit bd20957
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sdks/python/src/opik/evaluation/exception_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ def is_llm_provider_rate_limit_error(exception: Exception) -> bool:
litellm.exceptions.RateLimitError,
)

is_rate_limit_error = (
isinstance(exception, rate_limit_error_known_types)
or (hasattr(exception, "status_code") and exception.status_code == 429)
is_rate_limit_error = isinstance(exception, rate_limit_error_known_types) or (
hasattr(exception, "status_code") and exception.status_code == 429
)

return is_rate_limit_error

0 comments on commit bd20957

Please sign in to comment.