mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-08-09 19:32:11 -04:00
Uniformize spam-checker API, part 2: check_event_for_spam (#12808)
Signed-off-by: David Teller <davidt@element.io>
This commit is contained in:
parent
4cc4229cd7
commit
28199e9357
10 changed files with 128 additions and 30 deletions
|
@ -270,9 +270,7 @@ 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,
|
||||
self, msg: str = "Unrecognized request", errcode: str = Codes.UNRECOGNIZED
|
||||
):
|
||||
super().__init__(400, msg, errcode)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue