diff options
author | Mark Haines <mjark@negativecurvature.net> | 2016-07-28 11:12:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-28 11:12:19 +0100 |
commit | 4329f20e3f93f70328b0ddb950b8240f2175b310 (patch) | |
tree | d9afc0e373028359c6d11cf60968a4f1d2d61f64 /synapse | |
parent | Merge pull request #941 from matrix-org/erikj/key_client_fix (diff) | |
parent | Fix retry utils to check if the exception is a subclass of CME (diff) | |
download | synapse-4329f20e3f93f70328b0ddb950b8240f2175b310.tar.xz |
Merge pull request #962 from matrix-org/markjh/retry
Fix retry utils to check if the exception is a subclass of CME
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/util/retryutils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/retryutils.py b/synapse/util/retryutils.py index 43cf11f3f6..49527f4d21 100644 --- a/synapse/util/retryutils.py +++ b/synapse/util/retryutils.py @@ -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: |