summary refs log tree commit diff
path: root/synapse/util
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2016-07-28 10:29:12 +0100
committerMark Haines <mark.haines@matrix.org>2016-07-28 10:47:02 +0100
commitbf81e38d365b79130b5e04053de0eaff94b0d472 (patch)
tree324c2ecc38834e7643c660b5f17fd110a71c6c14 /synapse/util
parentMerge pull request #961 from matrix-org/dbkr/fix_push_invite_name (diff)
downloadsynapse-bf81e38d365b79130b5e04053de0eaff94b0d472.tar.xz
Fix retry utils to check if the exception is a subclass of CME
Diffstat (limited to 'synapse/util')
-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: