summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2020-12-30 08:39:59 -0500
committerGitHub <noreply@github.com>2020-12-30 08:39:59 -0500
commitb7c580e33341ffbd12533a572439778929f811bf (patch)
tree41a68e5c7b8f4e4992c7aa0fd16e8d5be0e456a5 /synapse/handlers
parentAdd additional type hints to the storage module. (#8980) (diff)
downloadsynapse-b7c580e33341ffbd12533a572439778929f811bf.tar.xz
Check if group IDs are valid before using them. (#8977)
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/groups_local.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/groups_local.py b/synapse/handlers/groups_local.py
index abd8d2af44..df29edeb83 100644
--- a/synapse/handlers/groups_local.py
+++ b/synapse/handlers/groups_local.py
@@ -29,7 +29,7 @@ def _create_rerouter(func_name):
 
     async def f(self, group_id, *args, **kwargs):
         if not GroupID.is_valid(group_id):
-            raise SynapseError(400, "%s was not legal group ID" % (group_id,))
+            raise SynapseError(400, "%s is not a legal group ID" % (group_id,))
 
         if self.is_mine_id(group_id):
             return await getattr(self.groups_server_handler, func_name)(