From 031910adb5604549d89738cd30c5edef0fe66dbd Mon Sep 17 00:00:00 2001 From: ascpial Date: Mon, 6 Nov 2023 20:23:50 +0100 Subject: [PATCH] fix: linter warning --- plugins/groups/groups.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/groups/groups.py b/plugins/groups/groups.py index cb649684..1030737b 100644 --- a/plugins/groups/groups.py +++ b/plugins/groups/groups.py @@ -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):