summary refs log tree commit diff
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2016-07-28 11:12:19 +0100
committerGitHub <noreply@github.com>2016-07-28 11:12:19 +0100
commit4329f20e3f93f70328b0ddb950b8240f2175b310 (patch)
treed9afc0e373028359c6d11cf60968a4f1d2d61f64
parentMerge pull request #941 from matrix-org/erikj/key_client_fix (diff)
parentFix retry utils to check if the exception is a subclass of CME (diff)
downloadsynapse-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
-rw-r--r--synapse/util/retryutils.py2
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: