From 4993b349ef197e19c9cc2b40bb83ba1639aba1ac Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 21 Apr 2023 12:04:36 -0500 Subject: [PATCH] Avoid error if tempmon probe has invalid status --- tailbone/views/tempmon/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/views/tempmon/core.py b/tailbone/views/tempmon/core.py index 3f4df128..62ace028 100644 --- a/tailbone/views/tempmon/core.py +++ b/tailbone/views/tempmon/core.py @@ -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()