Fix: Use FileNotFoundError for file not found in main.py#558
Fix: Use FileNotFoundError for file not found in main.py#558creepereye1204 wants to merge 1 commit intotheskumar:mainfrom
Conversation
|
Title: Refactor: Improve error handling and remove unused parameter in Description: This pull request introduces two refactoring changes to
|
|
This looks good to me but I would like to update the test |
Replaced IOError with FileNotFoundError on line 377 of main.py to use a more specific and appropriate exception for file not found errors. test: update test_find_dotenv_no_file_raise to expect FileNotFoundError Updated test_main.py (line 351) to replace IOError with FileNotFoundError so that the test matches the updated exception handling 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.