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

Wrap all urllib3 read ProtocolErrors as GitProtocolError #1261

Merged
merged 2 commits into from
Mar 14, 2024

Conversation

nanonyme
Copy link
Contributor

@nanonyme nanonyme commented Mar 5, 2024

Fixes #1225

@nanonyme nanonyme force-pushed the protocolerror branch 2 times, most recently from 0fcea15 to f2f842c Compare March 5, 2024 19:36
@nanonyme
Copy link
Contributor Author

nanonyme commented Mar 5, 2024

@jelmer not sure if this is overkill. It seemed simpler to just add an exception to protocol.py but that would have leaked HTTP client implementation details there (it looked like this has been insulated into client.py).

Copy link
Owner

@jelmer jelmer left a comment

Choose a reason for hiding this comment

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

Looks good to me overall, just one nit about the function name.

dulwich/client.py Outdated Show resolved Hide resolved
@nanonyme nanonyme marked this pull request as ready for review March 13, 2024 20:36
@nanonyme
Copy link
Contributor Author

Looks like CI is failing all over due to ruff

@jelmer jelmer merged commit b676645 into jelmer:master Mar 14, 2024
19 checks passed
@nanonyme nanonyme deleted the protocolerror branch March 14, 2024 17:55
@nanonyme
Copy link
Contributor Author

nanonyme commented Mar 14, 2024

@jelmer Is there any plan for next release?

@jelmer
Copy link
Owner

jelmer commented Mar 15, 2024

Not currently but I can probably do one in the next couple of weeks

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.

Dulwich passes through IncompleteRead from urllib3
2 participants