bug: fix an issue with missing a check for bosminer config when getting data.

This commit is contained in:
UpstreamData
2023-02-28 16:23:04 -07:00
parent 6be1e94216
commit e9bcf2ec9f

View File

@@ -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
groups = []
cfg = await self.get_config()
if cfg:
for group in cfg.pool_groups:
pools = {"quota": group.quota}
for _i, _pool in enumerate(group.pools):