Commit ef660b6
CM-71014: log the OSError when a read path cannot be stat-ed
The stat guard swallowed OSError silently, so a file read that was skipped because
its path could not be reached looked identical to one skipped for being a
directory. Log it at debug with the path.
Reachable on the older interpreters in the support matrix: Path.is_file() raises
PermissionError on 3.9 and 3.11 (verified), while on 3.13+ it delegates to
os.path.isfile and swallows the error itself. requires-python is >=3.9 and the
Docker image and release builds run 3.9, so the branch is live for those installs
and inert for the bundled executable.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 166df32 commit ef660b6
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
329 | | - | |
| 329 | + | |
| 330 | + | |
330 | 331 | | |
331 | 332 | | |
332 | 333 | | |
| |||
0 commit comments