diff --git a/synapse/api/errors.py b/synapse/api/errors.py index c606207569..22732e9ea8 100644 --- a/synapse/api/errors.py +++ b/synapse/api/errors.py @@ -248,7 +248,7 @@ class UserDeactivatedError(SynapseError): ) -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.