fix: Correctly parse error

This commit is contained in:
2025-03-07 14:28:52 +11:00
parent a0574ab915
commit 9c280ee03d

View File

@@ -190,7 +190,7 @@ def hnslinks(params, authentication):
# Sign message hns-links # Sign message hns-links
response = account.signMessage(authentication,domain,"hns-links") response = account.signMessage(authentication,domain,"hns-links")
if "error" in response and response["error"] != False: if "error" in response and response["error"]:
return {"status": f"Error: {response['error']}"} return {"status": f"Error: {response['error']}"}
return {"status": response} return {"status": response}