fix: Update json keys
All checks were successful
Build Docker / BuildImage (push) Successful in 29s

This commit is contained in:
Nathan Woodburn 2024-10-03 15:59:05 +10:00
parent e9bad16917
commit 7b7cfa52e8
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -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)})