From 6932c4257413799c54ca6e39e0eb655d59217b6c Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Tue, 1 Nov 2016 23:16:55 +0100 Subject: [PATCH] Fix traceback syntax highlighting Additional text at the end (local variables) has a red border for each line with py3tb, but not with pytb. --- src/utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utilities.py b/src/utilities.py index fc804c9..4a46bb4 100644 --- a/src/utilities.py +++ b/src/utilities.py @@ -481,7 +481,7 @@ def pastebin_tb(cli, msg, exc): req.add_header("Accept", "application/json") resp = urllib.request.urlopen(req) data = json.loads(resp.read().decode("utf-8")) - url = data["url"] + "/py3tb" + url = data["url"] + "/pytb" except Exception: # 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.)")