diff --git a/packages/modules/loadvars.py b/packages/modules/loadvars.py index d88f9197da..cc265e6b6c 100644 --- a/packages/modules/loadvars.py +++ b/packages/modules/loadvars.py @@ -119,6 +119,8 @@ def _update_values_virtual_counter_uncounted_consumption(self, not_finished_thre for counter in data.data.counter_data.values(): try: component = get_finished_component_obj_by_id(counter.num, not_finished_threads) + if component is None: + continue if component.component_config.type == "virtual": if len(data.data.counter_all_data.get_entry_of_element(counter.num)["children"]) == 0: thread_name = f"component{component.component_config.id}"