bug: fix a missed check for missing pool info.

This commit is contained in:
UpstreamData
2023-02-23 15:03:54 -07:00
parent c08d7fa5cd
commit 01fc2591ad

View File

@@ -16,6 +16,7 @@
import ipaddress
import logging
import warnings
from collections import namedtuple
from typing import List, Optional, Tuple, Union
@@ -151,6 +152,12 @@ class BTMiner(BaseMiner):
summary = data["summary"][0]
except APIError as e:
logging.warning(e)
except LookupError:
# somethings wrong with the miner
warnings.warn(
f"Failed to gather pool config for miner: {self}, miner did not return pool information."
)
pass
if pools:
if "POOLS" in pools: