Procházet zdrojové kódy

fix a bug where missing catching TypeError

highing666 před 2 roky
rodič
revize
3cbee747c0

+ 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: