Skip to content
Snippets Groups Projects
Commit 2e996271 authored by Richard van der Hoff's avatar Richard van der Hoff
Browse files

Instantiate DeferredTimedOutError correctly

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

Fixes https://github.com/matrix-org/synapse/issues/2179.
parent 25a96e0c
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment