aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar FrenchMasterSword <[email protected]>2019-01-05 20:47:13 +0100
committerGravatar GitHub <[email protected]>2019-01-05 20:47:13 +0100
commitc97fc634fd0d7ff79b5d64f7cfab915e52d1985a (patch)
tree209e554ff0113c9372735022c3cc4a90045a7753
parentMerge pull request #252 from python-discord/pre-commit (diff)
Added Name of exception's class in traceback.
-rw-r--r--bot/cogs/snekbox.py2
1 files changed, 1 insertions, 1 deletions
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,}")