Fix hw-sensor bug caused by upstream code
This commit is contained in:
parent
1cb7de08f3
commit
bf354edeae
1 changed files with 5 additions and 1 deletions
|
|
@ -67,7 +67,11 @@ def get_feature_string(chip, feature):
|
|||
|
||||
for sf in sfs:
|
||||
name = sf.name[skipname:].decode("utf-8").strip()
|
||||
val = sensors.get_value(chip, sf.number)
|
||||
try:
|
||||
val = sensors.get_value(chip, sf.number)
|
||||
except Exception:
|
||||
# Ignore upstream sensor bugs and lie instead
|
||||
val = -123456789
|
||||
if 'alarm' in name:
|
||||
# Skip
|
||||
continue
|
||||
|
|
|
|||
Loading…
Reference in a new issue