From 0ca881d7cd7ad6490d9da310dbc34395b6f54535 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sat, 9 Jul 2016 09:47:59 -0500 Subject: [PATCH] Fixed an error causing errors to not print --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 0226537..3c1cd88 100644 --- a/bot.py +++ b/bot.py @@ -48,7 +48,7 @@ async def on_command_error(error, ctx): config.resetConnection() await bot.say("The connection to the MySQL server was lost! Please try your command one more time {}".format(ctx.message.author.mention)) fmt = 'An error occurred while processing this request: ```py\n{}: {}\n```' - await bot.say(fmt.format(type(e).__name__, e)) + await bot.say(fmt.format(type(error).__name__, error)) if __name__ == '__main__': for e in extensions: