bug: fix uncaught error in get_hashboards with BMMiner if a key doesnt exist.
This commit is contained in:
@@ -238,9 +238,12 @@ class BMMiner(BaseMiner):
|
|||||||
real_slots = []
|
real_slots = []
|
||||||
|
|
||||||
for i in range(board_offset, board_offset + 4):
|
for i in range(board_offset, board_offset + 4):
|
||||||
key = f'chain_acs{i}'
|
try:
|
||||||
if boards[1][key] != '':
|
key = f'chain_acs{i}'
|
||||||
real_slots.append(i)
|
if boards[1].get(key, '') != '':
|
||||||
|
real_slots.append(i)
|
||||||
|
except LookupError:
|
||||||
|
pass
|
||||||
|
|
||||||
if len(real_slots) < 3:
|
if len(real_slots) < 3:
|
||||||
real_slots = list(range(board_offset, board_offset + self.ideal_hashboards))
|
real_slots = list(range(board_offset, board_offset + self.ideal_hashboards))
|
||||||
|
|||||||
Reference in New Issue
Block a user