Skip to content

Commit

Permalink
fix: linter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ascpial committed Nov 6, 2023
1 parent d6b4e19 commit 1d41f66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/groups/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ async def convert(self, ctx: MyContext, arg: str) -> Group:
try:
# try to convert it to a role
role = await commands.RoleConverter().convert(ctx, arg)
except commands.BadArgument:
except commands.BadArgument as exc:
await ctx.send(
await ctx.bot._(ctx.channel, "groups.error.unknown-group", g=arg),
ephemeral=True
)
raise commands.BadArgument()
raise exc
# make sure the cog is actually loaded, let's not break everything
if cog := ctx.bot.get_cog("Groups"):
if res := cog.db_get_group(ctx.guild.id, role.id):
Expand Down

0 comments on commit 1d41f66

Please sign in to comment.