diff --git a/coordinator/ProcessorScraper.py b/coordinator/ProcessorScraper.py index 421bd1551d93d4e51888b8a2e13f9f7d22460a64..b4e1af56abd19011623e2ceb80ae92029774f5cb 100644 --- a/coordinator/ProcessorScraper.py +++ b/coordinator/ProcessorScraper.py @@ -18,6 +18,7 @@ import smtplib import ssl import subprocess +import certifi from numpy import where from pandas import concat, DataFrame, read_csv, Series, set_option @@ -318,8 +319,8 @@ def send_email( maintainers = gmail_config['toaddrs'] # Create a secure SSL context - context = ssl.create_default_context() - + context = ssl.create_default_context(cafile=certifi.where()) + # It is indicated that gmail requires port 465 for SMTP_SSL, otherwise port # 587 with .starttls() from # https://realpython.com/python-send-email/#sending-a-plain-text-email I diff --git a/coordinator/ProcessorServer.py b/coordinator/ProcessorServer.py index 5f2a0476e9199dea130a8a46cad2588d9dbe9afe..68ea5dd5dd38dc6c8d1095908b1762ee8ccc9ef1 100644 --- a/coordinator/ProcessorServer.py +++ b/coordinator/ProcessorServer.py @@ -105,6 +105,7 @@ def upload(config,FilesToSend,component): 'Deposition' : usual_path, 'Epidemiology' : usual_path, 'Survey' : f"SURVEYDATA_{config['StartString']}_0000/", + 'Scraper' : usual_path, 'Advisory' : usual_path }