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