From cbd33697f86836b28f43e2769b72e8a5f97d400a Mon Sep 17 00:00:00 2001 From: jamaal Date: Thu, 19 Feb 2026 11:13:38 -0800 Subject: [PATCH] bug: handle TypeError in from_btminer_v3 method to handle when there is an error state --- pyasic/config/pools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyasic/config/pools.py b/pyasic/config/pools.py index e4388256f..7d4e65ab7 100644 --- a/pyasic/config/pools.py +++ b/pyasic/config/pools.py @@ -643,7 +643,7 @@ def from_api(cls, api_pools: dict) -> PoolConfig: def from_btminer_v3(cls, rpc_pools: dict) -> PoolConfig: try: pool_data = rpc_pools["pools"] - except KeyError: + except (KeyError, TypeError): return PoolConfig.default() pool_data = sorted(pool_data, key=lambda x: int(x["id"]))