0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-06-29 07:58:19 +02:00

Instantiate DeferredTimedOutError correctly

Call `super` correctly, so that we correctly initialise the `errcode` field.

Fixes https://github.com/matrix-org/synapse/issues/2179.
This commit is contained in:
Richard van der Hoff 2017-05-02 13:26:17 +01:00
parent 25a96e0c63
commit 2e996271fe

View file

@ -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):