diff --git a/red.py b/red.py index 78be899fe..dc0303b12 100644 --- a/red.py +++ b/red.py @@ -79,7 +79,7 @@ async def on_command_error(error, ctx): elif isinstance(error, commands.BadArgument): await send_cmd_help(ctx) elif isinstance(error, commands.DisabledCommand): - await bot.send_message(ctx.message.channel, + await bot.send_message(ctx.message.channel, "That command is disabled.") elif isinstance(error, commands.CommandInvokeError): logger.exception("Exception in command '{}'".format( @@ -90,6 +90,8 @@ async def on_command_error(error, ctx): await ctx.bot.send_message(ctx.message.channel, inline(oneliner)) elif isinstance(error, commands.CommandNotFound): pass + elif isinstance(error, commands.CheckFailure): + pass else: logger.exception(type(error).__name__, exc_info=error) @@ -404,4 +406,4 @@ if __name__ == '__main__': logger.error(traceback.format_exc()) loop.run_until_complete(bot.logout()) finally: - loop.close() \ No newline at end of file + loop.close()