From dd95bade318f4133b6e59fd9e57ae5adea4e84e6 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Tue, 19 Nov 2019 17:27:04 -0600 Subject: [PATCH] Can't strip the error object --- bot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 8f27a4d..4119fd2 100644 --- a/bot.py +++ b/bot.py @@ -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