From c97fc634fd0d7ff79b5d64f7cfab915e52d1985a Mon Sep 17 00:00:00 2001 From: FrenchMasterSword <33038089+FrenchMasterSword@users.noreply.github.com> Date: Sat, 5 Jan 2019 20:47:13 +0100 Subject: Added Name of exception's class in traceback. --- bot/cogs/snekbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/cogs/snekbox.py b/bot/cogs/snekbox.py index cb0454249..0b9aa1b45 100644 --- a/bot/cogs/snekbox.py +++ b/bot/cogs/snekbox.py @@ -30,7 +30,7 @@ exec(open(venv_file).read(), dict(__file__=venv_file)) try: {CODE} except Exception as e: - print(e) + print("{}: {}".format(e.__class__.__name__, e)) """ ESCAPE_REGEX = re.compile("[`\u202E\u200B]{3,}") -- cgit v1.2.3