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):