Can't strip the error object
This commit is contained in:
parent
ad41accdc3
commit
dd95bade31
3
bot.py
3
bot.py
|
@ -104,8 +104,7 @@ async def on_command_error(ctx, error):
|
||||||
await bot.error_channel.send(f"""```
|
await bot.error_channel.send(f"""```
|
||||||
Command = {discord.utils.escape_markdown(ctx.message.clean_content).strip()}
|
Command = {discord.utils.escape_markdown(ctx.message.clean_content).strip()}
|
||||||
{''.join(traceback.format_tb(error.__traceback__)).strip()}
|
{''.join(traceback.format_tb(error.__traceback__)).strip()}
|
||||||
{error.__class__.__name__}: {error.strip()}
|
{error.__class__.__name__}: {error}```""")
|
||||||
```""")
|
|
||||||
except discord.HTTPException:
|
except discord.HTTPException:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue