diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-13 20:43:41 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-13 20:43:41 +0200 |
commit | fdca0f720707eb015b2150bd9228fdcc85e6ef3a (patch) | |
tree | 22c08e2ed309ce107dc65dc5d8d550e977637123 /pyaggr3g470r/views.py | |
parent | Load MAILGUN_SMTP_SERVER env variable. (diff) | |
download | newspipe-fdca0f720707eb015b2150bd9228fdcc85e6ef3a.tar.gz newspipe-fdca0f720707eb015b2150bd9228fdcc85e6ef3a.tar.bz2 newspipe-fdca0f720707eb015b2150bd9228fdcc85e6ef3a.zip |
trying to send email with postmark
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r-- | pyaggr3g470r/views.py | 5 |
1 files changed, 4 insertions, 1 deletions
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') |