def cat_facts_error(self, ctx, exc): if isinstance(exc, commands.BadArgument): pass else: ctx.command = ctx.command.name