From a1d1a6337ec72c40e5c4f2eb08621d62e0f131d6 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Fri, 31 Jan 2025 17:21:42 +1100 Subject: [PATCH] fix: Add catch for bids without height as given by older hsd --- account.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/account.py b/account.py index 1562fe4..29cced2 100644 --- a/account.py +++ b/account.py @@ -571,6 +571,10 @@ def getBids(account, domain="NONE"): for bid in response: if 'value' not in bid: bid['value'] = -1000000 + + # Backup for older HSD versions + if 'height' not in bid: + bid['height'] = 0 bids.append(bid) return bids