We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d0a084 commit 5a804caCopy full SHA for 5a804ca
1 file changed
pyasic/config/pools.py
@@ -643,7 +643,7 @@ def from_api(cls, api_pools: dict) -> PoolConfig:
643
def from_btminer_v3(cls, rpc_pools: dict) -> PoolConfig:
644
try:
645
pool_data = rpc_pools["pools"]
646
- except KeyError:
+ except (KeyError, TypeError):
647
return PoolConfig.default()
648
pool_data = sorted(pool_data, key=lambda x: int(x["id"]))
649
0 commit comments