Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No error handling for file operations #85

Open
michaelsaki opened this issue Feb 26, 2024 · 0 comments
Open

No error handling for file operations #85

michaelsaki opened this issue Feb 26, 2024 · 0 comments
Labels
bug This issue or pull request addresses broken functionality improvement This issue or pull request will add or improve functionality, maintainability, or ease of use

Comments

@michaelsaki
Copy link

🐛 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.

@michaelsaki michaelsaki added bug This issue or pull request addresses broken functionality improvement This issue or pull request will add or improve functionality, maintainability, or ease of use labels Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue or pull request addresses broken functionality improvement This issue or pull request will add or improve functionality, maintainability, or ease of use
Projects
None yet
Development

No branches or pull requests

1 participant