From 43d2eee27a1aa6b14837a17499024457ed9d279c Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Sun, 27 Jun 2021 19:23:53 -0600 Subject: [PATCH] Actual traceback --- jarvis/cogs/dev.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jarvis/cogs/dev.py b/jarvis/cogs/dev.py index d842c2e..7ebf358 100644 --- a/jarvis/cogs/dev.py +++ b/jarvis/cogs/dev.py @@ -5,6 +5,7 @@ import re import ulid import base64 import subprocess +import traceback from discord.ext import commands from jarvis.utils import build_embed, convert_bytesize from jarvis.utils.field import Field @@ -241,8 +242,8 @@ class DevCog(commands.Cog): async def _eval(self, ctx, *, code: str): try: output = eval(code, locals(), globals()) - except Exception as e: - output = e.__traceback__ + except Exception: + output = traceback.format_tb() await ctx.send(f"```{output}```")