From 758669a57ac8a171fd8d8333092e812940638274 Mon Sep 17 00:00:00 2001 From: Slava Kyrachevsky Date: Tue, 21 Feb 2017 14:02:25 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/emencia/django/newsletter/mailer.py b/apps/emencia/django/newsletter/mailer.py index 85fddc1c..04517fe7 100644 --- a/apps/emencia/django/newsletter/mailer.py +++ b/apps/emencia/django/newsletter/mailer.py @@ -555,11 +555,12 @@ class NewsLetterSender(object): contact.valid = False contact.save() else: + # FIXME: добавить логинорование в sentry # signal error print >>sys.stderr, 'smtp connection raises %s' % exception status = ContactMailingStatus.ERROR - if self.newsletter.dailymail and status in [ContactMailingStatus.SENT_TEST, ContactMailingStatus.SENT]: + if self.newsletter.dailymail and status in [ContactMailingStatus.SENT_TEST, ContactMailingStatus.SENT, ContactMailingStatus.INVALID]: contact.last_mailing_date = datetime.now().date() contact.save() params = {