Skip to content

Fix incorrect condition for JSON report path, default currency for empty cost data, and remove dead except block#30

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

Fix incorrect condition for JSON report path, default currency for empty cost data, and remove dead except block#30
bencehezso merged 1 commit into
mainfrom
tasks/fix-bugs

Conversation

@bencehezso
Copy link
Copy Markdown
Contributor

Fixes three small correctness bugs found during the codebase audit.

This PR fixes a copy-paste error in main.py where the JSON report path output checked the wrong variable (html_report_path instead of json_report_path), adds a currency = "USD" default before the cost data loop in both AWS and Azure cost builders to prevent an UnboundLocalError when the cloud API returns zero rows, and removes an unreachable duplicate except Exception block at the end of build_aws_cost_inventory.

@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 5873d7a into main May 12, 2026
3 checks passed
@bencehezso bencehezso deleted the tasks/fix-bugs branch May 12, 2026 14:26
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