generated from nathanwoodburn/python-webserver-template
fix: Don't try to get tx when errors frm HSD API
All checks were successful
Build Docker / BuildImage (push) Successful in 32s
All checks were successful
Build Docker / BuildImage (push) Successful in 32s
This commit is contained in:
parent
a70751fdae
commit
1f97599a64
@ -155,7 +155,8 @@ def renew_path(path: str):
|
|||||||
message = f'Renewing {data["data"]}'
|
message = f'Renewing {data["data"]}'
|
||||||
if req["error"] != "":
|
if req["error"] != "":
|
||||||
message += "\n\nError: " + req["error"]
|
message += "\n\nError: " + req["error"]
|
||||||
message += "\n\nTX: https://hns.cymon.de/tx/" + req["output"].split("'")[1]
|
else:
|
||||||
|
message += "\n\nTX: https://hns.cymon.de/tx/" + req["output"].split("'")[1]
|
||||||
|
|
||||||
requests.post(webhook, json={"content": message})
|
requests.post(webhook, json={"content": message})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user