From 2b895a524a746d71a412c5d5fa15157a7c0df083 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Tue, 28 Jan 2025 16:16:26 +1100 Subject: [PATCH] fix: Stop bids without known blind from causing crashes --- account.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/account.py b/account.py index 5408164..9ecb02e 100644 --- a/account.py +++ b/account.py @@ -402,11 +402,16 @@ def getWalletStatus(): def getBids(account, domain="NONE"): if domain == "NONE": - return hsw.getWalletBids(account) - - - response = hsw.getWalletBidsByName(domain,account) - return response + response = hsw.getWalletBids(account) + else: + response = hsw.getWalletBidsByName(domain,account) + # 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): return hsw.getWalletRevealsByName(domain,account)