Avoid error if tempmon probe has invalid status

This commit is contained in:
Lance Edgar 2023-04-21 12:04:36 -05:00
parent eb31fa9ab7
commit 4993b349ef

View file

@ -55,7 +55,7 @@ class MasterView(views.MasterView):
'good_temp_min': probe.good_temp_min,
'good_temp_max': probe.good_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",
})
app = self.get_rattail_app()