Skip to content

Commit 5d68c41

Browse files
Fix: Use FileNotFoundError for file not found in main.py Replaced IOError with FileNotFoundError on line 377 of main.py to use a more specific and appropriate exception for file not found errors.
1 parent d20edd6 commit 5d68c41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotenv/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ def dotenv_values(
465465
encoding=encoding,
466466
).dict()
467467

468-
468+
469469
def _is_file_or_fifo(path: StrPath) -> bool:
470470
"""
471471
Return True if `path` exists and is either a regular file or a FIFO.

0 commit comments

Comments
 (0)