Fix
This commit is contained in:
parent
1f85f63d20
commit
0c79548027
|
|
@ -14,7 +14,6 @@ def send_email_with_news(news_ids):
|
||||||
for s in subscribers:
|
for s in subscribers:
|
||||||
try:
|
try:
|
||||||
for n in news_ids:
|
for n in news_ids:
|
||||||
print(n)
|
|
||||||
sent_news = models.News.objects.get(id=n)
|
sent_news = models.News.objects.get(id=n)
|
||||||
# settings.NEWS_EMAIL_TEMPLATE
|
# settings.NEWS_EMAIL_TEMPLATE
|
||||||
|
|
||||||
|
|
@ -27,5 +26,4 @@ def send_email_with_news(news_ids):
|
||||||
"country_code": s.country_code}),
|
"country_code": s.country_code}),
|
||||||
settings.EMAIL_HOST_USER, [s.send_to], fail_silently=False)
|
settings.EMAIL_HOST_USER, [s.send_to], fail_silently=False)
|
||||||
except SMTPException:
|
except SMTPException:
|
||||||
print('SMTPException')
|
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user