smtp error handling updated

remotes/origin/stage5
Alexander Burdeiny 10 years ago
parent bbdc4b6965
commit 0b726cb09c
  1. 2
      emencia/django/newsletter/mailer.py

@ -467,7 +467,7 @@ class Mailer(NewsLetterSender):
self.smtp.sendmail(self.newsletter.header_sender, self.smtp.sendmail(self.newsletter.header_sender,
contact.email, contact.email,
message.as_string()) message.as_string())
except Exception, e: except (Exception, ) as e:
exception = e exception = e
else: else:
exception = None exception = None

Loading…
Cancel
Save