Browse Source

fix a bug where missing catching TypeError

highing666 2 years ago
parent
commit
3cbee747c0
1 changed files with 1 additions and 1 deletions
  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: