From 16022c51c9a91943db01a9936b4eb62afcee34a3 Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Thu, 23 May 2013 14:40:14 -0700 Subject: [PATCH] bug fix: missing return statement --- app/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views.py b/app/views.py index 1733f6f..bce74aa 100644 --- a/app/views.py +++ b/app/views.py @@ -88,7 +88,7 @@ def login(): def after_login(resp): if resp.email is None or resp.email == "": flash(gettext('Invalid login. Please try again.')) - redirect(url_for('login')) + return redirect(url_for('login')) user = User.query.filter_by(email = resp.email).first() if user is None: nickname = resp.nickname