corrected parsing
This commit is contained in:
@@ -318,8 +318,7 @@ class MaraMiner(MaraFirmware):
|
|||||||
pools_data = []
|
pools_data = []
|
||||||
if web_pools is not None:
|
if web_pools is not None:
|
||||||
try:
|
try:
|
||||||
pools = web_pools.get("POOLS", [])
|
for pool_info in web_pools:
|
||||||
for pool_info in pools:
|
|
||||||
url = pool_info.get("URL")
|
url = pool_info.get("URL")
|
||||||
pool_url = PoolUrl.from_str(url) if url else None
|
pool_url = PoolUrl.from_str(url) if url else None
|
||||||
pool_data = PoolMetrics(
|
pool_data = PoolMetrics(
|
||||||
|
|||||||
Reference in New Issue
Block a user