bug: fix an issue with missing a check for bosminer config when getting data.
This commit is contained in:
@@ -690,6 +690,7 @@ class BOSMiner(BaseMiner):
|
|||||||
# need to use get_config, as this will never read perfectly as there are some bad edge cases
|
# need to use get_config, as this will never read perfectly as there are some bad edge cases
|
||||||
groups = []
|
groups = []
|
||||||
cfg = await self.get_config()
|
cfg = await self.get_config()
|
||||||
|
if cfg:
|
||||||
for group in cfg.pool_groups:
|
for group in cfg.pool_groups:
|
||||||
pools = {"quota": group.quota}
|
pools = {"quota": group.quota}
|
||||||
for _i, _pool in enumerate(group.pools):
|
for _i, _pool in enumerate(group.pools):
|
||||||
|
|||||||
Reference in New Issue
Block a user