Skip to content

add ENOTDIR to from_file silent error handling#5914

Closed
abdullahmujahidali wants to merge 1 commit intopallets:mainfrom
abdullahmujahidali:fix/from-file-enotdir-silent
Closed

add ENOTDIR to from_file silent error handling#5914
abdullahmujahidali wants to merge 1 commit intopallets:mainfrom
abdullahmujahidali:fix/from-file-enotdir-silent

Conversation

@abdullahmujahidali
Copy link

Add errno.ENOTDIR to the silent error handling in Config.from_file(), matching the existing behavior of Config.from_pyfile(). When a path component is a regular file instead of a directory, from_file(..., silent=True) now returns False instead of raising OSError.

fixes #5912

  • Added test for the ENOTDIR case.
  • Added CHANGES.rst entry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Config.from_file() missing ENOTDIR in silent error handling

2 participants

Comments