Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix HTTP error handling in Stock Price Fetcher #189

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

torrresagus
Copy link
Collaborator

Description

This PR fixes the handling of HTTP errors in the StockPriceFetcher class. Previously, the code was using HTTPError from the requests library, which caused a NameError since httpx is being used instead.

Changes Made

  • Replaced HTTPError with httpx.HTTPError in the exception handling block.
  • Ensured proper exception handling for HTTP status errors with httpx.HTTPError.

Related Issues

  • Resolves the NameError encountered due to incorrect exception handling.

Copy link

vercel bot commented Jun 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marketwatch-4mll ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 18, 2024 2:55am

@antoinebou12 antoinebou12 merged commit 04694e8 into antoinebou12:main Jun 18, 2024
4 of 6 checks passed
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.

2 participants