-
Notifications
You must be signed in to change notification settings - Fork 12
No error handling for file operations #85
Copy link
Copy link
Open
Labels
bugThis issue or pull request addresses broken functionalityThis issue or pull request addresses broken functionalityimprovementThis issue or pull request will add or improve functionality, maintainability, or ease of useThis issue or pull request will add or improve functionality, maintainability, or ease of use
Metadata
Metadata
Assignees
Labels
bugThis issue or pull request addresses broken functionalityThis issue or pull request addresses broken functionalityimprovementThis issue or pull request will add or improve functionality, maintainability, or ease of useThis issue or pull request will add or improve functionality, maintainability, or ease of use
Type
Fields
Give feedbackNo fields configured for issues without a type.
🐛 Summary
The source code opens several files for reading and writing without implementing explicit error handling for cases where files might not exist, lack permissions, or encounter other I/O errors.
This is the case for the following files:
create_sld_to_agency_name_and_id_mapping.py
pshtt_csv2mongo.py
sslyze_csv2mongo.py
trustymail_csv2mongo.py
Expected behavior
Add error handling around file operations to handle potential errors gracefully. Provide meaningful error messages to help diagnose issues when they occur.