fixed some bugs with older versions of braiins OS +, and fixed a bug in testbench

This commit is contained in:
UpstreamData
2022-05-17 13:09:10 -06:00
parent 3d265e823b
commit 9f19b42de5
3 changed files with 28 additions and 9 deletions

View File

@@ -336,7 +336,11 @@ class MinerFactory(metaclass=Singleton):
"BOSminer" in string for string in version["VERSION"][0].keys()
):
api = "BOSMiner"
if "plus" in version["VERSION"][0]["BOSminer"]:
if version["VERSION"][0].get("BOSminer"):
if "plus" in version["VERSION"][0]["BOSminer"]:
api = "BOSMiner+"
if "BOSminer+" in version["VERSION"][0].keys():
api = "BOSMiner+"
# if all that fails, check the Description to see if it is a whatsminer