From f8ccdf7eebaa184f3704b48fa60394e238204d7f Mon Sep 17 00:00:00 2001 From: p_monsalvete Date: Tue, 18 Jul 2023 11:49:38 -0400 Subject: [PATCH] bug None/1000 solved --- hub/catalog_factories/data_models/cost/fuel.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hub/catalog_factories/data_models/cost/fuel.py b/hub/catalog_factories/data_models/cost/fuel.py index 55b4723b..79527b62 100644 --- a/hub/catalog_factories/data_models/cost/fuel.py +++ b/hub/catalog_factories/data_models/cost/fuel.py @@ -46,7 +46,10 @@ class Fuel: Get fixed operational costs depending on the peak power consumed in currency per month per W :return: None or float """ - return self._fixed_power/1000 + if self._fixed_power is not None: + return self._fixed_power/1000 + else: + return None @property def variable(self) -> Union[tuple[None, None], tuple[float, str]]: