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

Use correct var

parent aaecffba
No related branches found
No related tags found
No related merge requests found
......@@ -123,7 +123,7 @@ class RetryDestinationLimiter(object):
def __exit__(self, exc_type, exc_val, exc_tb):
valid_err_code = False
if exc_type is not None and issubclass(exc_type, CodeMessageException):
valid_err_code = valid_err_code != 429 and 0 <= exc_val.code < 500
valid_err_code = exc_val.code != 429 and 0 <= exc_val.code < 500
if exc_type is None or valid_err_code:
# We connected successfully.
......
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