bug: fix a bug with identifying some older version of BOSMiner.

This commit is contained in:
UpstreamData
2022-11-17 15:27:06 -07:00
parent 8f0bfd5f83
commit 5ee6a38f39

View File

@@ -572,7 +572,7 @@ class MinerFactory(metaclass=Singleton):
try:
if data["version"][0]["STATUS"][0]["Msg"] == "Disconnected":
return data["devdetails"], data["version"]
except KeyError:
except (KeyError, TypeError):
pass
raise APIError(validation[1])
# copy each part of the main command to devdetails and version