diff options
| author | 2019-01-05 20:47:13 +0100 | |
|---|---|---|
| committer | 2019-01-05 20:47:13 +0100 | |
| commit | c97fc634fd0d7ff79b5d64f7cfab915e52d1985a (patch) | |
| tree | 209e554ff0113c9372735022c3cc4a90045a7753 | |
| parent | Merge pull request #252 from python-discord/pre-commit (diff) | |
Added Name of exception's class in traceback.
Diffstat (limited to '')
| -rw-r--r-- | bot/cogs/snekbox.py | 2 |
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,}") |