瀏覽代碼

fix a bug where missing catching TypeError

highing666 2 年之前
父節點
當前提交
3cbee747c0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/controllers/equipment/pau/supply_air_temperature_set.py

+ 1 - 1
app/controllers/equipment/pau/supply_air_temperature_set.py

@@ -23,7 +23,7 @@ class ACATFUSupplyAirTemperatureController:
     def get_next_set(self, is_just_booted: bool) -> float:
         try:
             cold_hot_ratio = self.cold_rate / self.hot_rate
-        except ZeroDivisionError:
+        except (ZeroDivisionError, TypeError):
             cold_hot_ratio = 99
 
         if is_just_booted: