1
0
Fork 0
mirror of synced 2024-05-06 21:52:30 +12:00

Can't strip the error object

This commit is contained in:
Phxntxm 2019-11-19 17:27:04 -06:00
parent ad41accdc3
commit dd95bade31

3
bot.py
View file

@ -104,8 +104,7 @@ async def on_command_error(ctx, error):
await bot.error_channel.send(f"""```
Command = {discord.utils.escape_markdown(ctx.message.clean_content).strip()}
{''.join(traceback.format_tb(error.__traceback__)).strip()}
{error.__class__.__name__}: {error.strip()}
```""")
{error.__class__.__name__}: {error}```""")
except discord.HTTPException:
pass