added whatsminer get bad boards

This commit is contained in:
UpstreamData
2022-01-26 14:53:51 -07:00
parent 516075db6d
commit 3178083533
6 changed files with 42 additions and 7 deletions

View File

@@ -219,7 +219,10 @@ class MinerFactory:
else:
# if all that fails, try just version
data = await self._send_api_command(str(ip), "version")
model = data["VERSION"][0]["Type"]
if "VERSION" in data.keys():
model = data["VERSION"][0]["Type"]
else:
print(data)
return model