From abf9d625f38cc52a057c3b0103f561c84b8cd506 Mon Sep 17 00:00:00 2001 From: RGBCube <78925721+RGBCube@users.noreply.github.com> Date: Tue, 21 Jun 2022 13:15:23 +0300 Subject: [PATCH] fix traceback --- cogs/error_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/error_handler.py b/cogs/error_handler.py index 6fedd2c..4a14b87 100644 --- a/cogs/error_handler.py +++ b/cogs/error_handler.py @@ -49,8 +49,8 @@ class ErrorHandler(commands.Cog): await ctx.reply("Invalid channel.") else: - trace = traceback.format_exception(type(error), error, error.__traceback__) - print(f"Ignoring exception in command {ctx.command}:\n{''.join(trace)}") + trace = "".join(traceback.format_exception(type(error), error, error.__traceback__)) + print(f"Ignoring exception in command {ctx.command}:\n{trace}") await self.bot.log_webhook.send(f"<@512640455834337290>```{trace}```")