Skip to content

Commit a0d925f

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 7b5afcf commit a0d925f

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
@@ -375,7 +375,7 @@ def _is_debugger():
375375
return check_path
376376

377377
if raise_error_if_not_found:
378-
raise IOError("File not found")
378+
raise FileNotFoundError("File not found")
379379

380380
return ""
381381

0 commit comments

Comments
 (0)