bug: fix possible case where unidentified miner type can raise and error

This commit is contained in:
Upstream Data
2024-11-25 13:00:49 -07:00
parent c95491ea45
commit 5d57f35475

View File

@@ -529,7 +529,11 @@ class MinerProtocol(Protocol):
expected_fans=self.expected_fans,
hashboards=[
HashBoard(slot=i, expected_chips=self.expected_chips)
for i in range(self.expected_hashboards)
for i in range(
self.expected_hashboards
if self.expected_hashboards is not None
else 0
)
],
)