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

BUG(WS): sendgrid_mailer module does not handle missing files gracefully #296

Open
vfedotovs opened this issue Sep 6, 2024 · 0 comments

Comments

@vfedotovs
Copy link
Owner

❯ python3.11 ./sendgrid_mailer.py
2024-09-06 18:04:19,269 [INFO ] : sendgrid_mailer_main: 88: --- Started sendgrid_mailer module ---
2024-09-06 18:04:19,270 [INFO ] : sendgrid_mailer_main: 89: Trying to open email_body_txt_m4.txt for email body content
2024-09-06 18:04:19,270 [ERROR] : sendgrid_mailer_main: 100: FileNotFoundError: email_body_txt_m4.txt not found.
Traceback (most recent call last):
File "/Users/vfedotovs/projects/v155-RC3-dev-20240906/src/ws/app/wsmodules/./sendgrid_mailer.py", line 164, in
sendgrid_mailer_main()
File "/Users/vfedotovs/projects/v155-RC3-dev-20240906/src/ws/app/wsmodules/./sendgrid_mailer.py", line 106, in sendgrid_mailer_main
with open('basic_price_stats.txt') as file_object:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'basic_price_stats.txt'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant