fix a bug with whatsminer crashing if hitting a S19 condition
This commit is contained in:
@@ -536,6 +536,7 @@ class MinerFactory(metaclass=Singleton):
|
|||||||
if not model:
|
if not model:
|
||||||
stats = await self._send_api_command(str(ip), "stats")
|
stats = await self._send_api_command(str(ip), "stats")
|
||||||
if stats:
|
if stats:
|
||||||
|
if "STATS" in stats.keys():
|
||||||
if stats["STATS"][0].get("Type"):
|
if stats["STATS"][0].get("Type"):
|
||||||
_model = stats["STATS"][0]["Type"].upper()
|
_model = stats["STATS"][0]["Type"].upper()
|
||||||
if " BB" in _model:
|
if " BB" in _model:
|
||||||
|
|||||||
Reference in New Issue
Block a user