Fix hw-sensor bug caused by upstream code

This commit is contained in:
2Shirt 2018-10-10 15:48:18 -06:00
parent 1cb7de08f3
commit bf354edeae
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -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