소스 검색

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: