1
0
Fork 0
mirror of synced 2024-05-07 06:02:24 +12:00

Fixed an error causing errors to not print

This commit is contained in:
Phxntxm 2016-07-09 09:47:59 -05:00
parent 2923c9c876
commit 0ca881d7cd

2
bot.py
View file

@ -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: