From 8a7d168591bde8f418d642d3f737c895507d9624 Mon Sep 17 00:00:00 2001 From: Slava Kyrachevsky Date: Tue, 21 Feb 2017 14:06:11 +0200 Subject: [PATCH] =?UTF-8?q?=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=B4=D0=BE=D0=BF=20=D0=BE=D1=88=D0=B8=D0=B1?= =?UTF-8?q?=D0=BE=D0=BA=20=D0=BF=D1=80=D0=B8=20=D0=BE=D1=82=D0=BF=D1=80?= =?UTF-8?q?=D0=B0=D0=B2=D0=BA=D0=B5=20=D1=80=D0=B0=D1=81=D1=81=D1=8B=D0=BB?= =?UTF-8?q?=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/emencia/django/newsletter/mailer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/emencia/django/newsletter/mailer.py b/apps/emencia/django/newsletter/mailer.py index 04517fe7..d0a1b2eb 100644 --- a/apps/emencia/django/newsletter/mailer.py +++ b/apps/emencia/django/newsletter/mailer.py @@ -560,7 +560,7 @@ class NewsLetterSender(object): print >>sys.stderr, 'smtp connection raises %s' % exception status = ContactMailingStatus.ERROR - if self.newsletter.dailymail and status in [ContactMailingStatus.SENT_TEST, ContactMailingStatus.SENT, ContactMailingStatus.INVALID]: + if self.newsletter.dailymail and status in [ContactMailingStatus.SENT_TEST, ContactMailingStatus.SENT, ContactMailingStatus.ERROR]: contact.last_mailing_date = datetime.now().date() contact.save() params = {