From 9c280ee03d0ba11dde1fab23bf912a5db03c6e58 Mon Sep 17 00:00:00 2001
From: Nathan Woodburn <github@nathan.woodburn.au>
Date: Fri, 7 Mar 2025 14:28:52 +1100
Subject: [PATCH] fix: Correctly parse error

---
 hnslinks.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hnslinks.py b/hnslinks.py
index 7f5f027..e18c4e1 100644
--- a/hnslinks.py
+++ b/hnslinks.py
@@ -190,7 +190,7 @@ def hnslinks(params, authentication):
     
     # Sign message 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": response}