diff options
author | Richard van der Hoff <richard@matrix.org> | 2017-05-02 13:26:17 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2017-05-02 13:26:17 +0100 |
commit | 2e996271fe7c7acc828e19535ba2eec0b503f9e3 (patch) | |
tree | 1190b9c521adbb03c3317f55f2b78407cce9282b | |
parent | Merge pull request #2163 from matrix-org/erikj/fix_invite_state (diff) | |
download | synapse-2e996271fe7c7acc828e19535ba2eec0b503f9e3.tar.xz |
Instantiate DeferredTimedOutError correctly
Call `super` correctly, so that we correctly initialise the `errcode` field. Fixes https://github.com/matrix-org/synapse/issues/2179.
-rw-r--r-- | synapse/util/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/__init__.py b/synapse/util/__init__.py index 98a5a26ac5..2a2360ab5d 100644 --- a/synapse/util/__init__.py +++ b/synapse/util/__init__.py @@ -26,7 +26,7 @@ logger = logging.getLogger(__name__) class DeferredTimedOutError(SynapseError): def __init__(self): - super(SynapseError, self).__init__(504, "Timed out") + super(DeferredTimedOutError, self).__init__(504, "Timed out") def unwrapFirstError(failure): |