This commit is contained in:
Виктор Гладких 2019-10-01 17:51:27 +03:00
parent 1f85f63d20
commit 0c79548027

View File

@ -14,7 +14,6 @@ def send_email_with_news(news_ids):
for s in subscribers:
try:
for n in news_ids:
print(n)
sent_news = models.News.objects.get(id=n)
# settings.NEWS_EMAIL_TEMPLATE
@ -27,5 +26,4 @@ def send_email_with_news(news_ids):
"country_code": s.country_code}),
settings.EMAIL_HOST_USER, [s.send_to], fail_silently=False)
except SMTPException:
print('SMTPException')
continue