Fix Config.from_file() silent mode not handling ENOTDIR
`Config.from_file()` with `silent=True` did not handle `errno.ENOTDIR`, causing it to raise an error when a path component is a regular file instead of a directory. This was inconsistent with `Config.from_pyfile()`, which has handled ENOTDIR since PR #2581. fixes #5912 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d3b78fd18a
commit
c8ecf241e3
3 changed files with 26 additions and 1 deletions
|
|
@ -3,6 +3,9 @@ Version 3.2.0
|
|||
|
||||
Unreleased
|
||||
|
||||
- ``Config.from_file()`` with ``silent=True`` now handles ``ENOTDIR``
|
||||
errors, matching the behavior of ``Config.from_pyfile()``. :issue:`5912`
|
||||
|
||||
- Drop support for Python 3.9. :pr:`5730`
|
||||
- Remove previously deprecated code: ``__version__``. :pr:`5648`
|
||||
- ``RequestContext`` has merged with ``AppContext``. ``RequestContext`` is now
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue