Skip to content

Commit

Permalink
add more exception types
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldmitry committed Aug 20, 2024
1 parent 94bbff9 commit 5d6af16
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@ def _retry_on_condition(exception):
"""
if isinstance(exception, ApiError) and str(exception.status.code) != "403":
return True
if isinstance(exception, exceptions.ConfigError) or isinstance(exception, ValueError):
return True
return False


Expand Down

0 comments on commit 5d6af16

Please sign in to comment.