Fixed an error causing errors to not print
This commit is contained in:
parent
2923c9c876
commit
0ca881d7cd
2
bot.py
2
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:
|
||||
|
|
Loading…
Reference in a new issue