Fix pastebin_tb to actually use the passed traceback
This commit is contained in:
parent
c968e1192a
commit
a2257ce692
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user