Skip to content

Commit d973218

Browse files
authored
my_backoff: 不要な条件分岐を削除 (#363)
1 parent 3f5cea4 commit d973218

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

annofabapi/utils.py

-11
Original file line numberDiff line numberDiff line change
@@ -287,17 +287,6 @@ def fatal_code(e):
287287
code = e.response.status_code
288288
return 400 <= code < 500 and code != 429
289289

290-
elif isinstance(
291-
e,
292-
(
293-
requests.exceptions.TooManyRedirects,
294-
requests.exceptions.Timeout,
295-
requests.exceptions.ConnectionError,
296-
ConnectionError,
297-
),
298-
):
299-
return False
300-
301290
else:
302291
# リトライする
303292
return False

0 commit comments

Comments
 (0)