Skip to content

Commit 5a804ca

Browse files
bugy855jamaal
andauthored
stop 'btminer process is down err' from blocking get data process (#416)
Co-authored-by: jamaal <jamaal@sustainhash.com>
1 parent 2d0a084 commit 5a804ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyasic/config/pools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ def from_api(cls, api_pools: dict) -> PoolConfig:
643643
def from_btminer_v3(cls, rpc_pools: dict) -> PoolConfig:
644644
try:
645645
pool_data = rpc_pools["pools"]
646-
except KeyError:
646+
except (KeyError, TypeError):
647647
return PoolConfig.default()
648648
pool_data = sorted(pool_data, key=lambda x: int(x["id"]))
649649

0 commit comments

Comments
 (0)