diff --git a/config.json b/config.json index e669c2a2..0b264ae0 100644 --- a/config.json +++ b/config.json @@ -16,7 +16,7 @@ "author": "Kartoza", "email": "info@kartoza.com", "description": "Gender Enabling Environments Spatial Tool", - "version": "0.4.3", + "version": "0.4.4", "changelog": "", "server": false } diff --git a/geest/gui/panels/tree_panel.py b/geest/gui/panels/tree_panel.py index 63066fa8..392755c8 100644 --- a/geest/gui/panels/tree_panel.py +++ b/geest/gui/panels/tree_panel.py @@ -1,6 +1,7 @@ import json import os import shutil +import traceback from logging import getLogger from typing import Union, Dict, List from qgis.PyQt.QtWidgets import ( @@ -1440,14 +1441,17 @@ def calculate_analysis_insights(self, item: JsonTreeItem): # leaving us with 2 potential products: # Subnational Aggregation fpr WEE Score x Population Unmasked # Subnational Aggregation for WEE Score x Population masked by Job Opportunities - - subnational_processor = SubnationalAggregationProcessingTask( - item, - study_area_gpkg_path=gpkg_path, - working_directory=self.working_directory, - force_clear=False, - ) - subnational_processor.run() + try: + subnational_processor = SubnationalAggregationProcessingTask( + item, + study_area_gpkg_path=gpkg_path, + working_directory=self.working_directory, + force_clear=False, + ) + subnational_processor.run() + except Exception as e: + log_message(f"Failed to run subnational aggregation: {e}") + log_message(traceback.format_exc()) log_message("############################################") log_message("END")