aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-13 21:07:35 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-13 21:07:35 +0200
commit3f15d343bf2eb047083d6b9d8a8c9b04d5d58f37 (patch)
treece741124b72435a00e49eecd83b8ab9aac309388 /pyaggr3g470r/views.py
parentupdated requirements.txt (diff)
downloadnewspipe-3f15d343bf2eb047083d6b9d8a8c9b04d5d58f37.tar.gz
newspipe-3f15d343bf2eb047083d6b9d8a8c9b04d5d58f37.tar.bz2
newspipe-3f15d343bf2eb047083d6b9d8a8c9b04d5d58f37.zip
bugfix
Diffstat (limited to 'pyaggr3g470r/views.py')
-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