Add syntax highlighting to the pastebin error URLs
This commit is contained in:
parent
052a2b2823
commit
3f5e3fce78
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user