fix: Update unknown owner message
All checks were successful
Build Docker / Build Image (push) Successful in 1m10s
All checks were successful
Build Docker / Build Image (push) Successful in 1m10s
Remove logging for DNS rendering
This commit is contained in:
12
account.py
12
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']
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user