From 9b64ecbfb21a9367d70926369caa1bcd3ed4445c Mon Sep 17 00:00:00 2001 From: Tim Sutton Date: Wed, 8 Jan 2025 07:39:28 +0000 Subject: [PATCH 1/2] Fix crash during analysis --- geest/gui/panels/tree_panel.py | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/geest/gui/panels/tree_panel.py b/geest/gui/panels/tree_panel.py index 63066fa..392755c 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") From b401c0d157ca1ff70adacbd8968708ec2be1094a Mon Sep 17 00:00:00 2001 From: Tim Sutton Date: Wed, 8 Jan 2025 07:40:40 +0000 Subject: [PATCH 2/2] bump version --- config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.json b/config.json index e669c2a..0b264ae 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 }