fix internal error when not using vnish preset (#33)

This commit is contained in:
DCreason
2023-03-04 08:54:27 -06:00
committed by GitHub
parent 9e28f7968a
commit e3c4464556

View File

@@ -138,6 +138,8 @@ class VNish(BMMiner):
if web_settings:
try:
wattage_limit = web_settings["miner"]["overclock"]["preset"]
if wattage_limit == "disabled":
return None
return int(wattage_limit)
except (KeyError, TypeError):
pass