forked from MirrorHub/synapse
add missing param to cancelled_to_request_timed_out_error
This gets two arguments, not one.
This commit is contained in:
parent
3a42aed9a1
commit
1dfd650348
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ class RequestTimedOutError(SynapseError):
|
||||||
super(RequestTimedOutError, self).__init__(504, "Timed out")
|
super(RequestTimedOutError, self).__init__(504, "Timed out")
|
||||||
|
|
||||||
|
|
||||||
def cancelled_to_request_timed_out_error(value):
|
def cancelled_to_request_timed_out_error(value, timeout):
|
||||||
"""Turns CancelledErrors into RequestTimedOutErrors.
|
"""Turns CancelledErrors into RequestTimedOutErrors.
|
||||||
|
|
||||||
For use with async.add_timeout_to_deferred
|
For use with async.add_timeout_to_deferred
|
||||||
|
|
Loading…
Reference in a new issue