summary refs log tree commit diff
path: root/synapse/api/errors.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-10-19 14:29:04 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2020-10-19 14:29:04 +0100
commit9d09ab74bbcd5b9cd86ef2711fe53a6807a3c3b8 (patch)
tree53b4c524fb6eee0c45548b8f9a8f60f7add0e822 /synapse/api/errors.py
parentMerge commit '079bc3c8e' into anoa/dinsic_release_1_21_x (diff)
parentImprove performance of the register endpoint (#8009) (diff)
downloadsynapse-9d09ab74bbcd5b9cd86ef2711fe53a6807a3c3b8.tar.xz
Merge commit '66f24449d' into anoa/dinsic_release_1_21_x
* commit '66f24449d':
  Improve performance of the register endpoint (#8009)
Diffstat (limited to 'synapse/api/errors.py')
-rw-r--r--synapse/api/errors.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/api/errors.py b/synapse/api/errors.py

index fcfdf8bd2b..a3b0c0a3e4 100644 --- a/synapse/api/errors.py +++ b/synapse/api/errors.py
@@ -239,14 +239,16 @@ class InteractiveAuthIncompleteError(Exception): (This indicates we should return a 401 with 'result' as the body) Attributes: + session_id: The ID of the ongoing interactive auth session. result: the server response to the request, which should be passed back to the client """ - def __init__(self, result: "JsonDict"): + def __init__(self, session_id: str, result: "JsonDict"): super(InteractiveAuthIncompleteError, self).__init__( "Interactive auth not yet complete" ) + self.session_id = session_id self.result = result