Skip to content

Commit c6b59da

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

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/dotenv/main.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,6 @@ def _is_debugger():
319319
if raise_error_if_not_found:
320320
raise FileNotFoundError("File not found")
321321
return ""
322-
323-
324322

325323

326324
def load_dotenv(

0 commit comments

Comments
 (0)