bug: fix a bug with older versions of BOSMiner having tuner status in a different place.

This commit is contained in:
UpstreamData
2022-11-07 10:09:56 -07:00
parent 8388d2f4ac
commit d47e59d057

View File

@@ -266,7 +266,11 @@ class BOSMiner(BaseMiner):
logging.warning(e)
if tunerstatus:
tuner = tunerstatus[0].get("TUNERSTATUS")
print(tunerstatus)
try:
tuner = tunerstatus[0].get("TUNERSTATUS")
except KeyError:
tuner = tunerstatus.get("TUNERSTATUS")
if tuner:
if len(tuner) > 0:
chain_status = tuner[0].get("TunerChainStatus")