generated from nathanwoodburn/python-webserver-template
This commit is contained in:
parent
e9bad16917
commit
7b7cfa52e8
@ -153,9 +153,9 @@ def renew_path(path: str):
|
|||||||
if webhook:
|
if webhook:
|
||||||
# Parse output
|
# Parse output
|
||||||
message = "Renewing " + data["data"]
|
message = "Renewing " + data["data"]
|
||||||
if req["output"]["error"] != "":
|
if req["error"] != "":
|
||||||
message += "\n\nError: " + req["output"]["error"]
|
message += "\n\nError: " + req["error"]
|
||||||
message += "\n\nTX: https://hns.cymon.de/tx/" + req["output"]["output"].split("'")[1]
|
message += "\n\nTX: https://hns.cymon.de/tx/" + req["output"].split("'")[1]
|
||||||
|
|
||||||
requests.post(webhook, json={"content": json.dumps(message)})
|
requests.post(webhook, json={"content": json.dumps(message)})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user