-
-
Notifications
You must be signed in to change notification settings - Fork 34k
Open
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtopic-SSLtype-featureA feature request or enhancementA feature request or enhancement
Description
Feature or enhancement
Proposal:
Considering the following example
ctx = ssl.create_default_context()
ctx.load_cert_chain(maybe_no_exists, maybe_not_exists_also)
# -> FileNotFoundError: [Errno 2] No such file or directoryThe 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
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
Metadata
Metadata
Assignees
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtopic-SSLtype-featureA feature request or enhancementA feature request or enhancement