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

feat: raise any httpx exceptions, e.g. from failed auth #90

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

michalc
Copy link
Owner

@michalc michalc commented Mar 15, 2024

This means that 403s, such as those from not being allowed to fetch a specific version, are passed to client code, and so help debug permission errors better than the disk i/o error that's being raised right now.

It also means there is consistency - before this change if there's a 403 (or any other connection error) from the initial HEAD request on the start of a query, then that was being passed to client now. Now, during the read data during the query if these get raised they get passed to client code.

A few more tests have been added that seem maybe unreleated, but they test code paths of when there are not any httpx exception, but there are SQLite exceptions.

@michalc michalc force-pushed the feat/raise-httpx-exceptions branch 11 times, most recently from 46e132d to 51fdee2 Compare March 15, 2024 21:57
This means that 403s, such as those from not being allowed to fetch a specific
version, are passed to client code, and so help debug permission errors better
than the disk i/o error that's being raised right now.

It also means there is consistency - before this change if there's a 403 (or
any other connection error) from the initial HEAD request on the start of a
query, then that was being passed to client now. Now, during the read data
during the query if these get raised they get passed to client code.

A few more tests have been added that seem maybe unreleated, but they test code
paths of when there are not any httpx exception, but there are SQLite
exceptions.
@michalc michalc force-pushed the feat/raise-httpx-exceptions branch from 51fdee2 to 0a836ef Compare March 15, 2024 22:02
@michalc michalc merged commit 58d06b4 into main Mar 15, 2024
136 checks passed
@michalc michalc deleted the feat/raise-httpx-exceptions branch March 15, 2024 22:20
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