From fe99059e5a95fbbeb0d684d9115b4155c676159c Mon Sep 17 00:00:00 2001 From: guille Date: Thu, 18 Apr 2024 07:42:19 +0200 Subject: [PATCH] Bugfix in montreal custom catalog --- .../energy_systems/montreal_custom_catalog.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hub/catalog_factories/energy_systems/montreal_custom_catalog.py b/hub/catalog_factories/energy_systems/montreal_custom_catalog.py index 8d2eb256..bf47d19b 100644 --- a/hub/catalog_factories/energy_systems/montreal_custom_catalog.py +++ b/hub/catalog_factories/energy_systems/montreal_custom_catalog.py @@ -111,7 +111,10 @@ class MontrealCustomCatalog(Catalog): distribution_consumption_variable_flow = float( equipment['distribution_consumption_variable_flow']['#text']) / 100 - emission_equipment = equipment['dissipation_id'] + emission_equipment = -1 + if 'dissipation_id' in equipment: + emission_equipment = equipment['dissipation_id'] + _emission_equipments = None for equipment_archetype in self._catalog_emission_equipments: if int(equipment_archetype.id) == int(emission_equipment):