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

Merge pull request #3 from RGBCube/main

fix traceback
This commit is contained in:
RGBCube 2022-06-21 13:16:18 +03:00 committed by GitHub
commit 36e8728e3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,8 +49,8 @@ class ErrorHandler(commands.Cog):
await ctx.reply("Invalid channel.") await ctx.reply("Invalid channel.")
else: else:
trace = traceback.format_exception(type(error), error, error.__traceback__) trace = "".join(traceback.format_exception(type(error), error, error.__traceback__))
print(f"Ignoring exception in command {ctx.command}:\n{''.join(trace)}") print(f"Ignoring exception in command {ctx.command}:\n{trace}")
await self.bot.log_webhook.send(f"<@512640455834337290>```{trace}```") await self.bot.log_webhook.send(f"<@512640455834337290>```{trace}```")