fix: Stop bids without known blind from causing crashes
This commit is contained in:
parent
f7968fc218
commit
2b895a524a
13
account.py
13
account.py
@ -402,11 +402,16 @@ def getWalletStatus():
|
|||||||
|
|
||||||
def getBids(account, domain="NONE"):
|
def getBids(account, domain="NONE"):
|
||||||
if domain == "NONE":
|
if domain == "NONE":
|
||||||
return hsw.getWalletBids(account)
|
response = hsw.getWalletBids(account)
|
||||||
|
else:
|
||||||
|
|
||||||
response = hsw.getWalletBidsByName(domain,account)
|
response = hsw.getWalletBidsByName(domain,account)
|
||||||
return response
|
# Add backup for bids with no value
|
||||||
|
bids = []
|
||||||
|
for bid in response:
|
||||||
|
if 'value' not in bid:
|
||||||
|
bid['value'] = -1000000
|
||||||
|
bids.append(bid)
|
||||||
|
return bids
|
||||||
|
|
||||||
def getReveals(account,domain):
|
def getReveals(account,domain):
|
||||||
return hsw.getWalletRevealsByName(domain,account)
|
return hsw.getWalletRevealsByName(domain,account)
|
||||||
|
Loading…
Reference in New Issue
Block a user