Fix traceback syntax highlighting

Additional text at the end (local variables) has a red border for each
line with py3tb, but not with pytb.
This commit is contained in:
nyuszika7h 2016-11-01 23:16:55 +01:00
parent dccfd9de38
commit 6932c42574

View File

@ -481,7 +481,7 @@ def pastebin_tb(cli, msg, exc):
req.add_header("Accept", "application/json") req.add_header("Accept", "application/json")
resp = urllib.request.urlopen(req) resp = urllib.request.urlopen(req)
data = json.loads(resp.read().decode("utf-8")) data = json.loads(resp.read().decode("utf-8"))
url = data["url"] + "/py3tb" url = data["url"] + "/pytb"
except Exception: except Exception:
# Exception is already printed before calling this function, don't print twice # Exception is already printed before calling this function, don't print twice
cli.msg(botconfig.DEV_CHANNEL, msg + " (Unable to pastebin traceback; please check the console.)") cli.msg(botconfig.DEV_CHANNEL, msg + " (Unable to pastebin traceback; please check the console.)")