From 8a2e6f05c0e604a64c9b53572f62d36bf9347ddb Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Mon, 22 Feb 2021 18:24:30 +0100 Subject: [PATCH] Adding ``` for traceback formating --- nemo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nemo.py b/nemo.py index 99890be..9389a99 100644 --- a/nemo.py +++ b/nemo.py @@ -32,7 +32,7 @@ class Nemo(discord.Client): try: await f(args=cmd[1::], message=message, guild=message.guild, channel=message.channel, member=message.author) except Exception: - await message.channel.send(f"Fatal error: {traceback.format_exc()}") + await message.channel.send(f"Fatal error: ```{traceback.format_exc()}```") raise def command(self, cmd): @@ -59,7 +59,7 @@ class Nemo(discord.Client): guild=reaction.message.guild, channel=reaction.message.channel) except Exception: - await reaction.message.channel.send(f"Fatal error: {traceback.format_exc()}") + await reaction.message.channel.send(f"Fatal error: ```{traceback.format_exc()}```") raise async def on_raw_reaction_add(self, payload: discord.RawReactionActionEvent):