Skip to content

Download Error Fix : WorldBank_IDS#1987

Open
kartik-s21 wants to merge 2 commits intodatacommonsorg:masterfrom
kartik-s21:fix-wb-ids-download
Open

Download Error Fix : WorldBank_IDS#1987
kartik-s21 wants to merge 2 commits intodatacommonsorg:masterfrom
kartik-s21:fix-wb-ids-download

Conversation

@kartik-s21
Copy link
Copy Markdown

Fixed a crash in 'download.py' for the World Bank IDS import. The script was failing when requesting data for future years (current year + 6).

Changes:
Added a try-except block around the data fetching logic to gracefully handle API failures.
Ensured the script continues processing other indicators if one fails.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request enhances the robustness of data downloading and processing scripts by implementing CSV-specific filtering and refactoring the World Bank data downloader to process indicators individually, which improves error resilience. Feedback was provided to move the instantiation of the DebtIDS object inside the indicator loop to ensure a fresh state for each attempt and avoid potential issues from failed iterations.

Comment thread statvar_imports/world_bank/worldbank_ids/download.py Outdated
@kartik-s21 kartik-s21 force-pushed the fix-wb-ids-download branch from 5323dc1 to f182fa5 Compare April 30, 2026 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant