You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ctx=ssl.create_default_context()
ctx.load_cert_chain(maybe_no_exists, maybe_not_exists_also)
# -> FileNotFoundError: [Errno 2] No such file or directory
The current implementation returns a simple No such file or directory exception without information about the file itself
Since FileNotFoundError have a filename attribute that is correctly reported in its representation, it would be appreciable to have the filename attached to the exception being raised
Activity
pythongh-144249: Report filename in SSLContext.load_cert_chain errors
pythongh-144249: Report filename in SSLContext.load_cert_chain errors
gh-144249: Report filename in SSLContext.load_cert_chain errors (#144250
pythongh-144249: Report filename in SSLContext.load_cert_chain errors (…