diff --git a/account.py b/account.py index f98db89..973d9ab 100644 --- a/account.py +++ b/account.py @@ -476,18 +476,10 @@ def getAddressFromCoin(coinhash: str, coinindex = 0): # Get the address from the hash response = requests.get(f"http://x:{HSD_API}@{HSD_IP}:{HSD_NODE_PORT}/coin/{coinhash}/{coinindex}") if response.status_code != 200: - return { - "error": { - "message": "Error getting address from coin" - } - } + return "No Owner" data = response.json() if 'address' not in data: - return { - "error": { - "message": "Error getting address from coin" - } - } + return "No Owner" return data['address'] diff --git a/render.py b/render.py index c3cdd39..e0dba7f 100644 --- a/render.py +++ b/render.py @@ -210,7 +210,6 @@ def dns(data, edit=False): html_output = "" index = 0 for entry in data: - print(entry, flush=True) html_output += f"{entry['type']}\n" if entry['type'] != 'DS' and not entry['type'].startswith("GLUE") and not entry['type'].startswith("SYNTH"):