From b6f2b743600e02b7ec8c03d5aa4a2415034703af Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Tue, 19 Nov 2019 17:29:12 -0600 Subject: [PATCH] Correct if logic to make sure first error hit is sent too --- bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 4119fd2..c3639c6 100644 --- a/bot.py +++ b/bot.py @@ -93,7 +93,8 @@ async def on_command_error(ctx, error): else: if isinstance(bot.error_channel, int): bot.error_channel = bot.get_channel(bot.error_channel) - elif bot.error_channel is None: + + if bot.error_channel is None: now = datetime.datetime.now() with open("error_log", 'a') as f: print("In server '{0.message.guild}' at {1}\n"