From d65bb4c0b6e03b8890b0114c3d6dc2e0393da450 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bence=20H=C3=A9zs=C5=91?= Date: Tue, 12 May 2026 16:59:34 +0200 Subject: [PATCH] Re-raise exceptions in Azure inventory builders to propagate failures to caller --- core/utils_azure.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/utils_azure.py b/core/utils_azure.py index efae7b0..ab9855d 100644 --- a/core/utils_azure.py +++ b/core/utils_azure.py @@ -127,10 +127,13 @@ def build_azure_resource_inventory( except ClientAuthenticationError as e: logger.error(f"Azure authentication error: {str(e)}", exc_info=True) + raise except sqlite3.Error as e: logger.error(f"SQLite error: {str(e)}", exc_info=True) + raise except Exception as e: logger.error(f"Error fetching Azure resources: {str(e)}", exc_info=True) + raise def get_missing_months_azure(processed_costs: set[str], months_back: int) -> set[date]: @@ -254,6 +257,7 @@ def build_azure_cost_inventory( except sqlite3.Error as e: logger.error(f"SQLite error: {str(e)}", exc_info=True) + raise except Exception as e: logger.error(f"Error creating Azure cost inventory: {str(e)}", exc_info=True) raise