Skip to content

Conversation

@Harshika1214
Copy link

Enhanced the error-handling mechanism in fetch_stocks.py to improve clarity and debugging.

Added specific exception handling (ValueError, KeyError, URLError, Exception)
Added detailed and user-friendly error messages
Included context-aware logging for easier troubleshooting
Checked for empty or missing API responses
Improved code reliability and user experience

This update aligns with Issue #8 and provides clearer insights when stock data fails to load.

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