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: