From ffd872abc402146776bf7b2f705305dd08ec443e Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Fri, 9 Sep 2016 22:29:18 -0500 Subject: [PATCH] Corrected checking to ensure errors are what i want shown --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 1c77287..68fbf54 100644 --- a/bot.py +++ b/bot.py @@ -111,7 +111,7 @@ async def on_command_error(error, ctx): await bot.send_message(ctx.message.channel, fmt) elif isinstance(error, commands.MissingRequiredArgument): await bot.send_message(ctx.message.channel, error) - elif not isinstance(error, commands.CommandNotFound) and isinstance(error, discord.Forbidden): + elif not isinstance(error, commands.CommandNotFound) and not isinstance(error, discord.Forbidden): now = datetime.datetime.now() with open("error_log", 'a') as f: print("In server '{0.message.server}' at {1}\nFull command: `{0.message.content}`".format(ctx, str(now)),