Include exception reason in pip version check warning#13793
Open
Include exception reason in pip version check warning#13793
Conversation
Member
|
The news entry in this PR is identical to the news item in your other PR: https://github.com/pypa/pip/pull/13790/changes Either this PR is a duplicate and should be closed or please update your news entry to make clear what this PR is doing. |
Contributor
Author
|
Thanks for spotting that — you’re right. This PR is not a duplicate; it
changes the version-check warning to include the underlying exception
reason. I’ll update the news fragment to reflect that specifically (the one
currently in the PR was accidentally copied from #13790).
Il giorno sab 7 feb 2026 alle ore 17:17 Damian Shaw <
***@***.***> ha scritto:
… *notatallshaw* left a comment (pypa/pip#13793)
<#13793 (comment)>
The news entry in this PR is identical to the news item in your other PR:
https://github.com/pypa/pip/pull/13790/changes
Either this PR is a duplicate and should be closed or please update your
news entry to make clear what this PR is doing.
—
Reply to this email directly, view it on GitHub
<#13793 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6CZNZN7HEQ2YU43L5BZWFD4KYFYBAVCNFSM6AAAAACUKB7OJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTQNRUG43TKMZVGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Cordialmente,
*Giancarlo Cicellyn Comneno*
|
Contributor
Author
|
Fixed the news entry (it was accidentally copied from #13790). It is now and describes this PR’s change. |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes a misleading warning emitted when the self version check fails (e.g. due to an inaccessible cache directory).
This keeps behavior unchanged (still a warning) but appends the exception type/message to make the underlying cause visible.
Tests: added a unit test that simulates a PermissionError and asserts the warning includes the reason.
Refs: #13352
Note: if you’d prefer less verbose output, I can shorten the warning to include only the exception type and keep full details in the debug log/traceback.