From ab230844fc4fe1907e7f46ca89f2b5df6cd459b0 Mon Sep 17 00:00:00 2001 From: Upstream Data Date: Sun, 13 Nov 2022 16:31:41 -0700 Subject: [PATCH] bug: fix an issue with chip count not receiving properly in some cases. --- pyasic/miners/_backends/bosminer.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyasic/miners/_backends/bosminer.py b/pyasic/miners/_backends/bosminer.py index ec042d79..f0309242 100644 --- a/pyasic/miners/_backends/bosminer.py +++ b/pyasic/miners/_backends/bosminer.py @@ -567,7 +567,10 @@ class BOSMiner(BaseMiner): board.temp = round(hb["temperatures"][0]["degreesC"]) if len(temps) > 1: board.chip_temp = round(hb["temperatures"][1]["degreesC"]) - board.chips = hb["hwDetails"]["chips"] + details = hb.get("hwDetails") + if details: + if chips := details["chips"]: + board.chips = chips board.missing = False if hb["tuner"]["statusMessages"][0] not in [