Fix pastebin_tb to actually use the passed traceback

This commit is contained in:
Vgr E. Barry 2016-10-30 22:32:08 -04:00
parent c968e1192a
commit a2257ce692

View File

@ -474,8 +474,8 @@ def pastebin_tb(cli, msg, exc):
api_url = "https://ptpb.pw/~{0}-error-{1}".format(bot_id, rand_id)
req = urllib.request.Request(api_url, urllib.parse.urlencode({
"c": traceback.format_exc(), # contents
"s": 86400 # expiry (seconds)
"c": exc, # contents
"s": 86400 # expiry (seconds)
}).encode("utf-8", "replace"))
req.add_header("Accept", "application/json")