fix: More code cleanup
All checks were successful
Build Docker / Build Image (push) Successful in 2m9s

This commit is contained in:
2025-08-25 12:43:12 +10:00
parent 599c0df00c
commit 792688064e
2 changed files with 5 additions and 8 deletions

View File

@@ -7,10 +7,8 @@ import os
from handywrapper import api
import threading
HSD_API = os.getenv("HSD_API")
HSD_IP = os.getenv("HSD_IP")
if HSD_IP is None:
HSD_IP = "localhost"
HSD_API = os.getenv("HSD_API","")
HSD_IP = os.getenv("HSD_IP","localhost")
HSD_NETWORK = os.getenv("HSD_NETWORK")
HSD_WALLET_PORT = 12039
@@ -560,7 +558,6 @@ def renderDomainAsync(namehash: str) -> None:
if namehash in cache:
return
# Fetch the name outside the lock (network call)
name = hsd.rpc_getNameByHash(namehash)
if name["error"] is None:
@@ -576,7 +573,7 @@ def renderDomainAsync(namehash: str) -> None:
with open(NAMEHASH_CACHE, 'w') as f:
json.dump(cache, f)
return rendered
return
else:
print(f"Error fetching name for hash {namehash}: {name['error']}", flush=True)