Skip to content
Snippets Groups Projects
Commit 4329f20e authored by Mark Haines's avatar Mark Haines Committed by GitHub
Browse files

Merge pull request #962 from matrix-org/markjh/retry

Fix retry utils to check if the exception is a subclass of CME
parents 78cac3e5 bf81e38d
No related branches found
No related tags found
No related merge requests found
......@@ -128,7 +128,7 @@ class RetryDestinationLimiter(object):
)
valid_err_code = False
if exc_type is CodeMessageException:
if exc_type is not None and issubclass(exc_type, CodeMessageException):
valid_err_code = 0 <= exc_val.code < 500
if exc_type is None or valid_err_code:
......
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