Avoid error if tempmon probe has invalid status
This commit is contained in:
parent
eb31fa9ab7
commit
4993b349ef
|
@ -55,7 +55,7 @@ class MasterView(views.MasterView):
|
||||||
'good_temp_min': probe.good_temp_min,
|
'good_temp_min': probe.good_temp_min,
|
||||||
'good_temp_max': probe.good_temp_max,
|
'good_temp_max': probe.good_temp_max,
|
||||||
'critical_temp_max': probe.critical_temp_max,
|
'critical_temp_max': probe.critical_temp_max,
|
||||||
'status': self.enum.TEMPMON_PROBE_STATUS[probe.status],
|
'status': self.enum.TEMPMON_PROBE_STATUS.get(probe.status, '??'),
|
||||||
'enabled': "Yes" if probe.enabled else "No",
|
'enabled': "Yes" if probe.enabled else "No",
|
||||||
})
|
})
|
||||||
app = self.get_rattail_app()
|
app = self.get_rattail_app()
|
||||||
|
|
Loading…
Reference in a new issue