We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a65b88 commit 44857c6Copy full SHA for 44857c6
src/pip/_internal/cli/req_command.py
@@ -59,10 +59,9 @@ def _create_truststore_ssl_context() -> Optional["SSLContext"]:
59
60
try:
61
from pip._vendor import truststore
62
- except ImportError:
+ except ImportError as e:
63
raise CommandError(
64
- "To use the truststore feature, 'truststore' must be installed into "
65
- "pip's current environment."
+ f"The truststore feature is unavailable: {e}"
66
)
67
68
return truststore.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
0 commit comments