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(sendgrid_mailer): After running second time sendgrid_mailer.py email does not arrive because pdf file missing #311

Closed
vfedotovs opened this issue Sep 22, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@vfedotovs
Copy link
Owner

Affected version: release-1.5.6
Issue description: After running second time sendgrid_mailer.py -> email does not arrive because pdf file missing

❯ python3.11  ./sendgrid_mailer.py
2024-09-22 17:11:58,202 [INFO ] : sendgrid_mailer_main: 130:  --- Started sendgrid_mailer module ---
2024-09-22 17:11:58,203 [INFO ] : gen_debug_subject: 77: Generating email subject with todays date
2024-09-22 17:11:58,203 [INFO ] : gen_debug_subject: 85: Email subject:  web_scraper_v1.5.4 _20240922_1711
2024-09-22 17:11:58,203 [INFO ] : sendgrid_mailer_main: 134: Building email body from 4 text files
2024-09-22 17:11:58,203 [ERROR] : extract_file_contents: 115: FileNotFoundError: file email_body_txt_m4.txt not found.
2024-09-22 17:11:58,203 [ERROR] : extract_file_contents: 115: FileNotFoundError: file basic_price_stats.txt not found.
2024-09-22 17:11:58,203 [ERROR] : extract_file_contents: 115: FileNotFoundError: file email_body_add_dates_table.txt not found.
2024-09-22 17:11:58,203 [ERROR] : extract_file_contents: 115: FileNotFoundError: file scraped_and_removed.txt not found.
2024-09-22 17:11:58,203 [INFO ] : sendgrid_mailer_main: 155: Checking if file Ogre_city_report.pdf exists
2024-09-22 17:11:58,203 [ERROR] : sendgrid_mailer_main: 195: FileNotFoundError: Ogre_city_report.pdf was not found
@vfedotovs vfedotovs added the duplicate This issue or pull request already exists label Sep 22, 2024
@vfedotovs
Copy link
Owner Author

Closing as duplicate of #307

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

1 participant