Fix pastebin_tb to actually use the passed traceback
This commit is contained in:
parent
c968e1192a
commit
a2257ce692
@ -474,7 +474,7 @@ def pastebin_tb(cli, msg, exc):
|
|||||||
api_url = "https://ptpb.pw/~{0}-error-{1}".format(bot_id, rand_id)
|
api_url = "https://ptpb.pw/~{0}-error-{1}".format(bot_id, rand_id)
|
||||||
|
|
||||||
req = urllib.request.Request(api_url, urllib.parse.urlencode({
|
req = urllib.request.Request(api_url, urllib.parse.urlencode({
|
||||||
"c": traceback.format_exc(), # contents
|
"c": exc, # contents
|
||||||
"s": 86400 # expiry (seconds)
|
"s": 86400 # expiry (seconds)
|
||||||
}).encode("utf-8", "replace"))
|
}).encode("utf-8", "replace"))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user