fixed a bug with the board utility

This commit is contained in:
UpstreamData
2022-01-24 16:39:11 -07:00
parent 8edfde96dc
commit dcf1a805c5
2 changed files with 13 additions and 20 deletions

View File

@@ -112,6 +112,9 @@ class BOSMiner(BaseMiner):
async def get_board_info(self) -> dict:
"""Gets data on each board and chain in the miner."""
devdetails = await self.api.devdetails()
if not devdetails.get("DEVDETAILS"):
print("devdetails error", devdetails)
return {6: [], 7: [], 8: []}
devs = devdetails['DEVDETAILS']
boards = {}
for board in devs: