removed extra print statements and a loop that wasnt needed in miner factory
This commit is contained in:
@@ -278,7 +278,6 @@ class MinerFactory(metaclass=Singleton):
|
|||||||
devdetails = None
|
devdetails = None
|
||||||
version = None
|
version = None
|
||||||
|
|
||||||
for i in range(GET_VERSION_RETRIES):
|
|
||||||
try:
|
try:
|
||||||
data = await self._send_api_command(str(ip), "devdetails+version")
|
data = await self._send_api_command(str(ip), "devdetails+version")
|
||||||
|
|
||||||
@@ -292,8 +291,6 @@ class MinerFactory(metaclass=Singleton):
|
|||||||
except APIError as e:
|
except APIError as e:
|
||||||
data = None
|
data = None
|
||||||
|
|
||||||
if data:
|
|
||||||
break
|
|
||||||
|
|
||||||
if not data:
|
if not data:
|
||||||
try:
|
try:
|
||||||
@@ -313,9 +310,6 @@ class MinerFactory(metaclass=Singleton):
|
|||||||
logging.warning(f"{ip}: API Command Error: {e}")
|
logging.warning(f"{ip}: API Command Error: {e}")
|
||||||
return None, None
|
return None, None
|
||||||
|
|
||||||
print(version)
|
|
||||||
print(devdetails)
|
|
||||||
|
|
||||||
if devdetails:
|
if devdetails:
|
||||||
if "DEVDETAILS" in devdetails.keys() and not devdetails["DEVDETAILS"] == []:
|
if "DEVDETAILS" in devdetails.keys() and not devdetails["DEVDETAILS"] == []:
|
||||||
# check for model, for most miners
|
# check for model, for most miners
|
||||||
|
|||||||
Reference in New Issue
Block a user