fix: key error in api response
All checks were successful
Build Docker / Build Image (push) Successful in 31s
All checks were successful
Build Docker / Build Image (push) Successful in 31s
This commit is contained in:
2
gift.py
2
gift.py
@@ -127,7 +127,7 @@ def gift(name,email,referer, ip,api=False):
|
||||
data = data.json()
|
||||
if data['domains'][0]['domainInfo']['name'] != d['name']:
|
||||
return "Something weird happened<br>Check back in a few minutes"
|
||||
if (data['domains'][0]['domainInfo']['expireBlock'] - data['currentHeight']) > EXPIRY_THRESHOLD:
|
||||
if (data['domains'][0]['domainInfo']['expireBlock'] - data['height']) > EXPIRY_THRESHOLD:
|
||||
domain = d['name']
|
||||
listing = d['id']
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user