bug: fix raising warnings for partially supported None miners
This commit is contained in:
@@ -866,6 +866,7 @@ class MinerFactory:
|
|||||||
return MINER_CLASSES[miner_type][str(miner_model).upper()](ip)
|
return MINER_CLASSES[miner_type][str(miner_model).upper()](ip)
|
||||||
except LookupError:
|
except LookupError:
|
||||||
if miner_type in MINER_CLASSES:
|
if miner_type in MINER_CLASSES:
|
||||||
|
if miner_model is not None:
|
||||||
warnings.warn(
|
warnings.warn(
|
||||||
f"Partially supported miner found: {miner_model}, please open an issue with miner data "
|
f"Partially supported miner found: {miner_model}, please open an issue with miner data "
|
||||||
f"and this model on GitHub (https://github.com/UpstreamData/pyasic/issues)."
|
f"and this model on GitHub (https://github.com/UpstreamData/pyasic/issues)."
|
||||||
|
|||||||
Reference in New Issue
Block a user