Skip to content

Re-raise exceptions in Azure inventory builders to propagate failures#32

Merged
bencehezso merged 1 commit into
mainfrom
tasks/fix-error-handling
May 12, 2026
Merged

Re-raise exceptions in Azure inventory builders to propagate failures#32
bencehezso merged 1 commit into
mainfrom
tasks/fix-error-handling

Conversation

@bencehezso
Copy link
Copy Markdown
Contributor

Fixes silent error swallowing in build_azure_resource_inventory and build_azure_cost_inventory in core/utils_azure.py.

This PR adds raise after each logger.error() call in the exception handlers so that failures (authentication errors, SQLite errors, unexpected exceptions) propagate to create_resource_inventory and create_cost_inventory in core/engine.py, which already handle them and report failure to the user. Previously, these errors were logged but silently discarded, causing the assessment to continue as if the inventory step succeeded.

@bencehezso bencehezso self-assigned this May 12, 2026
@bencehezso bencehezso added the enhancement New feature or request label May 12, 2026
@bencehezso bencehezso merged commit 716dc55 into main May 12, 2026
3 checks passed
@bencehezso bencehezso deleted the tasks/fix-error-handling branch May 12, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant