Skip to content
Snippets Groups Projects
Commit 76b111e1 authored by Leo Pound Singer's avatar Leo Pound Singer Committed by Leo Pound Singer
Browse files

Retry HTTP 408 Request Timeout errors

Fixes #469.
parent 3b969a57
No related branches found
No related tags found
1 merge request!972Retry HTTP 408 Request Timeout errors
......@@ -31,7 +31,7 @@ def catch_retryable_http_errors(f):
try:
return f(*args, **kwargs)
except HTTPError as e:
if e.response.status_code in {429, 502, 503, 504}:
if e.response.status_code in {408, 429, 502, 503, 504}:
raise RetryableHTTPError(
*e.args, request=e.request, response=e.response)
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment