summary refs log tree commit diff
path: root/synapse/api/errors.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2022-12-09 09:53:29 +0000
committerErik Johnston <erik@matrix.org>2022-12-09 09:53:29 +0000
commit90d007ec574d759ffa37d659db4f3d9bbea9589f (patch)
treeac43c259d826919c1d8148461bc2dfaf93431143 /synapse/api/errors.py
parentMerge branch 'develop' into matrix-org-hotfixes (diff)
parentDelete stale non-e2e devices for users, take 2 (#14595) (diff)
downloadsynapse-90d007ec574d759ffa37d659db4f3d9bbea9589f.tar.xz
Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes
Diffstat (limited to 'synapse/api/errors.py')
-rw-r--r--synapse/api/errors.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/synapse/api/errors.py b/synapse/api/errors.py

index e2cfcea0f2..76ef12ed3a 100644 --- a/synapse/api/errors.py +++ b/synapse/api/errors.py
@@ -300,10 +300,8 @@ class InteractiveAuthIncompleteError(Exception): class UnrecognizedRequestError(SynapseError): """An error indicating we don't understand the request you're trying to make""" - def __init__( - self, msg: str = "Unrecognized request", errcode: str = Codes.UNRECOGNIZED - ): - super().__init__(400, msg, errcode) + def __init__(self, msg: str = "Unrecognized request", code: int = 400): + super().__init__(code, msg, Codes.UNRECOGNIZED) class NotFoundError(SynapseError):