1
0
Fork 0
mirror of synced 2024-06-01 18:29:38 +12:00

Removing traceback printing

This commit is contained in:
Phxntxm 2016-07-17 13:46:44 -05:00
parent 1c20ef2754
commit 4a42611c1a

4
bot.py
View file

@ -57,10 +57,6 @@ async def on_command_error(error, ctx):
await bot.send_message(ctx.message.channel, fmt)
elif isinstance(error, commands.CheckFailure):
fmt = "You can't tell me what to do!"
f = open("/home/phxntx5/public_html/Bonfire/error_log", 'w')
print('In {0.command.qualified_name}:'.format(ctx), file=f)
traceback.print_tb(error.original.__traceback__, file=f)
print('{0.__class__.__name__}: {0}'.format(error.original), file=f)
await bot.send_message(ctx.message.channel, fmt)
#elif isinstance(error, commands.CommandInvokeError):
#f = open("/home/phxntx5/public_html/Bonfire/error_log", 'w')