diff options
author | Mark Haines <mark.haines@matrix.org> | 2016-07-28 10:29:12 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2016-07-28 10:47:02 +0100 |
commit | bf81e38d365b79130b5e04053de0eaff94b0d472 (patch) | |
tree | 324c2ecc38834e7643c660b5f17fd110a71c6c14 /synapse/util/retryutils.py | |
parent | Merge pull request #961 from matrix-org/dbkr/fix_push_invite_name (diff) | |
download | synapse-bf81e38d365b79130b5e04053de0eaff94b0d472.tar.xz |
Fix retry utils to check if the exception is a subclass of CME
Diffstat (limited to '')
-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: |