Fix: Informative UploadError#7004
Closed
moonsikpark wants to merge 5 commits intopython-poetry:mainfrom
Closed
Conversation
neersighted
requested changes
Nov 11, 2022
Member
neersighted
left a comment
There was a problem hiding this comment.
I'd like to see this use exception chaining instead of doubling down on string-based handling.
Contributor
Author
|
@neersighted I am not clear on what you want by using exception chaining. I've brought some examples of libraries by pypa to observe actions in case of network failure. Are you saying you want
|
|
Let's merge this |
dimbleby
added a commit
to dimbleby/poetry
that referenced
this pull request
Sep 22, 2024
preserve the underlying exception from requests, so that it is available when running with `--verbose` fixes python-poetry#3813, superseds python-poetry#7004
dimbleby
added a commit
to dimbleby/poetry
that referenced
this pull request
Sep 22, 2024
preserve the underlying exception from requests, so that it is available when running with `--verbose` fixes python-poetry#3813, supersedes python-poetry#7004
Member
|
Superseded by #9701 |
radoering
pushed a commit
to dimbleby/poetry
that referenced
this pull request
Sep 29, 2024
preserve the underlying exception from requests, so that it is available when running with `--verbose` fixes python-poetry#3813, supersedes python-poetry#7004
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Check List
Resolves: #3813
When
UploadErroris raised due torequests.ConnectionError, the error message is a fixed general recommendation. The error itself is not shown to the user, making it hard for the user to debug the problem.This PR fixes the problem by adding the representation of the exception to the error message.