vfedotovs / sslv_web_scraper

ss.lv web scraping app helps automate information scraping and filtering from classifieds and emails results and stores scraped data in database
GNU General Public License v3.0
5 stars 3 forks source link

BUG(sendgrid_mailer): After running second time sendgrid_mailer.py email does not arrive because pdf file missing #311

Closed vfedotovs closed 1 month ago

vfedotovs commented 1 month ago

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 commented 1 month ago

Closing as duplicate of #307