diff --git a/annofabapi/utils.py b/annofabapi/utils.py index a66f8e16..a531dbdf 100644 --- a/annofabapi/utils.py +++ b/annofabapi/utils.py @@ -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