aboutsummaryrefslogtreecommitdiffstats
path: root/slack/slack_user.py
diff options
context:
space:
mode:
Diffstat (limited to 'slack/slack_user.py')
-rw-r--r--slack/slack_user.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/slack/slack_user.py b/slack/slack_user.py
index 6c9d169..4e2ceae 100644
--- a/slack/slack_user.py
+++ b/slack/slack_user.py
@@ -122,7 +122,7 @@ class SlackUsergroup:
async def create(cls, workspace: SlackWorkspace, id: str):
info_response = await workspace.api.edgeapi.fetch_usergroups_info([id])
if not info_response["results"] or info_response["results"][0]["id"] != id:
- raise SlackError(workspace, f"Couldn't find user group {id}")
+ raise SlackError(workspace, "usergroup_not_found")
return cls(workspace, info_response["results"][0])
def handle(self) -> str: