Skip to content
Snippets Groups Projects
Commit fe08db27 authored by Erik Johnston's avatar Erik Johnston
Browse files

Remove explicit < 400 check as apparently this is confusing

parent 4c0ec15b
No related branches found
No related tags found
No related merge requests found
......@@ -129,9 +129,7 @@ class RetryDestinationLimiter(object):
# APIs may expect to never received e.g. a 404. It's important to
# handle 404 as some remote servers will return a 404 when the HS
# has been decommissioned.
if exc_val.code < 400:
valid_err_code = True
elif exc_val.code == 404 and self.backoff_on_404:
if exc_val.code == 404 and self.backoff_on_404:
valid_err_code = False
elif exc_val.code == 429:
# 429 is us being aggresively rate limited, so lets rate limit
......
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