fix: Don't try to get tx when errors frm HSD API
All checks were successful
Build Docker / BuildImage (push) Successful in 32s

This commit is contained in:
Nathan Woodburn 2024-10-03 16:03:58 +10:00
parent a70751fdae
commit 1f97599a64
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -155,6 +155,7 @@ def renew_path(path: str):
message = f'Renewing {data["data"]}'
if req["error"] != "":
message += "\n\nError: " + req["error"]
else:
message += "\n\nTX: https://hns.cymon.de/tx/" + req["output"].split("'")[1]
requests.post(webhook, json={"content": message})