From 3f15d343bf2eb047083d6b9d8a8c9b04d5d58f37 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 13 May 2014 21:07:35 +0200 Subject: bugfix --- pyaggr3g470r/views.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index 108a3894..40b2d0c3 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -189,14 +189,13 @@ def signup(): try: emails.new_account_notification(user) except Exception as e: + flash(gettext('Problem while sending activation email: '+ str(e)), 'danger') print str(e) - - if result.status_code != 200: - flash(gettext('Problem while sending activation email: '+ str(result.text)), 'danger') - else: - flash(gettext('Your account has been created. Check your mail to confirm it.'), 'success') return redirect(url_for('home')) + flash(gettext('Your account has been created. Check your mail to confirm it.'), 'success') + return redirect(url_for('home')) + return render_template('signup.html', form=form) @app.route('/') -- cgit