From fdca0f720707eb015b2150bd9228fdcc85e6ef3a Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 13 May 2014 20:43:41 +0200 Subject: trying to send email with postmark --- pyaggr3g470r/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pyaggr3g470r/views.py') diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index 58feb72b..108a3894 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -186,7 +186,10 @@ def signup(): return render_template('signup.html', form=form) # Send the confirmation email - result = emails.new_account_notification(user) + try: + emails.new_account_notification(user) + except Exception as e: + print str(e) if result.status_code != 200: flash(gettext('Problem while sending activation email: '+ str(result.text)), 'danger') -- cgit