aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyaggr3g470r/views.py9
1 files 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('/')
bgstack15