1
Fork 0
mirror of https://github.com/RGBCube/minearchy-bot synced 2025-07-27 08:57:46 +00:00

fix traceback

This commit is contained in:
RGBCube 2022-06-21 13:15:23 +03:00
parent 9c71bf5124
commit abf9d625f3

View file

@ -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}```")