block groups requests to fosdem

michaelkaye/remove_warning
Richard van der Hoff 2021-02-06 11:02:53 +00:00
parent 25757a3d47
commit 3f6530ed55
1 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,9 @@ def _create_rerouter(func_name):
else:
destination = get_domain_from_id(group_id)
if destination == "fosdem.org":
raise SynapseError(502, "Failed to contact group server")
try:
return await getattr(self.transport_client, func_name)(
destination, group_id, *args, **kwargs