From bcc7132880dc1cb54de51dc3c68bc1fcf2d394c0 Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Fri, 14 Oct 2022 23:27:59 -0500 Subject: [PATCH] `FederationDeniedError` is not a `SynapseError` Spawning from https://github.com/matrix-org/synapse/pull/13816#discussion_r993262622 --- synapse/api/errors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/api/errors.py b/synapse/api/errors.py index c6062075690e..22732e9ea8d1 100644 --- a/synapse/api/errors.py +++ b/synapse/api/errors.py @@ -248,7 +248,7 @@ def __init__(self, msg: str): ) -class FederationDeniedError(SynapseError): +class FederationDeniedError(RuntimeError): """An error raised when the server tries to federate with a server which is not on its federation whitelist.