Corrected syntax error on error printing
This commit is contained in:
parent
2d96f351c7
commit
e64ce2b06c
1 changed files with 1 additions and 1 deletions
2
bot.py
2
bot.py
|
@ -91,7 +91,7 @@ async def on_command_error(error, ctx):
|
|||
elif not isinstance(error, commands.CommandNotFound):
|
||||
now = datetime.datetime.now()
|
||||
with open("/home/phxntx5/public_html/Bonfire/error_log", 'a') as f:
|
||||
print('In server '{0.message.server}' command '{0.command.qualified_name}' on {1} :'.format(ctx,str(now)), file=f)
|
||||
print("In server '{0.message.server}' command '{0.command.qualified_name}' on {1}".format(ctx,str(now)), file=f)
|
||||
traceback.print_tb(error.original.__traceback__, file=f)
|
||||
print('{0.__class__.__name__}: {0}'.format(error.original), file=f)
|
||||
|
||||
|
|
Loading…
Reference in a new issue