Skip to content

Commit

Permalink
my_backoff: 不要な条件分岐を削除 (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuji38kwmt committed Sep 29, 2021
1 parent 3f5cea4 commit d973218
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions annofabapi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,17 +287,6 @@ def fatal_code(e):
code = e.response.status_code
return 400 <= code < 500 and code != 429

elif isinstance(
e,
(
requests.exceptions.TooManyRedirects,
requests.exceptions.Timeout,
requests.exceptions.ConnectionError,
ConnectionError,
),
):
return False

else:
# リトライする
return False
Expand Down

0 comments on commit d973218

Please sign in to comment.