diff options
| author | 2025-07-10 14:52:57 +0100 | |
|---|---|---|
| committer | 2025-07-10 14:52:57 +0100 | |
| commit | 85e5951799869074b43714ef02aa0c972c9b15cb (patch) | |
| tree | 4204c96a2da4bf2da9cfcf8a30d57e8e1b0aae72 /arthur/exts/github/management.py | |
| parent | Rename Exceptions (diff) | |
Fix mistakes from my inferior brain (#327)
* Rename GitHubException in cog
* Update GitHubException in Teams API
* Update __init__.py in GitHub API with new exception naming
Diffstat (limited to 'arthur/exts/github/management.py')
| -rw-r--r-- | arthur/exts/github/management.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arthur/exts/github/management.py b/arthur/exts/github/management.py index 202dd5b..ee3dca3 100644 --- a/arthur/exts/github/management.py +++ b/arthur/exts/github/management.py @@ -2,7 +2,7 @@ from discord.ext.commands import Cog, Context, group -from arthur.apis.github import GitHubException, add_staff_member +from arthur.apis.github import GitHubError, add_staff_member from arthur.bot import KingArthur from arthur.config import CONFIG @@ -33,7 +33,7 @@ class GitHubManagement(Cog): try: await add_staff_member(username) await ctx.send(f":white_check_mark: Successfully invited {username} to the staff team.") - except GitHubException as e: + except GitHubError as e: await ctx.send(f":x: Failed to add {username} to the staff team: {e}") |