From 3f5e3fce785d7d096bbcd1e5aad3749e12292bd3 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Thu, 11 Aug 2016 20:31:14 +0200 Subject: [PATCH] Add syntax highlighting to the pastebin error URLs --- src/utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utilities.py b/src/utilities.py index ea8ea58..5d3bd6f 100644 --- a/src/utilities.py +++ b/src/utilities.py @@ -451,7 +451,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"] + url = data["url"] + "/py3tb" except urllib.error.HTTPError as e: if e.code == 409: # paste ID conflict pastebin_tb(exc) # retry