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

Broaden the error handling for httpx Exceptions #17

Merged
merged 1 commit into from
Oct 11, 2023
Merged

Broaden the error handling for httpx Exceptions #17

merged 1 commit into from
Oct 11, 2023

Conversation

PaarthShah
Copy link
Contributor

Resolves: #16

Comment on lines +47 to +48
except httpx.TimeoutException:
raise
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I left this particular case in to satisfy tests.test_connection.test_timeout's assertion that a httpx.ReadTimeout would be raised up the stack.

@fabaff fabaff merged commit f510a70 into home-assistant-ecosystem:master Oct 11, 2023
3 checks passed
@PaarthShah PaarthShah deleted the httpx-error-handling branch October 31, 2023 00:02
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.

get_data catching httpx.ConnectError is too narrow
2 participants