1
0
Fork 0
mirror of synced 2024-05-19 20:12:30 +12:00

Printing full traceback, as I can't find my error at all

This commit is contained in:
Phxntxm 2016-07-15 10:48:01 -05:00
parent 96fc810818
commit 9f17a0be5f

4
bot.py
View file

@ -64,8 +64,8 @@ async def on_command_error(error, ctx):
await bot.send_message(ctx.message.channel, fmt)
else:
fmt = 'An error occurred while processing this request: ```py\n{}: {}\n```'
await bot.send_message(ctx.message.channel,str(traceback.format_exc()))
#await bot.send_message(ctx.message.channel, fmt.format(type(error).__name__, error))
traceback.print_exc(file="/home/phxntx5/public_html/Bonfire/bot_error")
await bot.send_message(ctx.message.channel, fmt.format(type(error).__name__, error))
if __name__ == '__main__':
for e in extensions: