bug: fix a bug with older versions of BOSMiner having tuner status in a different place.
This commit is contained in:
@@ -266,7 +266,11 @@ class BOSMiner(BaseMiner):
|
|||||||
logging.warning(e)
|
logging.warning(e)
|
||||||
|
|
||||||
if tunerstatus:
|
if tunerstatus:
|
||||||
|
print(tunerstatus)
|
||||||
|
try:
|
||||||
tuner = tunerstatus[0].get("TUNERSTATUS")
|
tuner = tunerstatus[0].get("TUNERSTATUS")
|
||||||
|
except KeyError:
|
||||||
|
tuner = tunerstatus.get("TUNERSTATUS")
|
||||||
if tuner:
|
if tuner:
|
||||||
if len(tuner) > 0:
|
if len(tuner) > 0:
|
||||||
chain_status = tuner[0].get("TunerChainStatus")
|
chain_status = tuner[0].get("TunerChainStatus")
|
||||||
|
|||||||
Reference in New Issue
Block a user