Permalink
Browse files

Fixes #519 by adding return statement

  • Loading branch information...
1 parent fa616a3 commit 18134e7cbc64e2241f75c82302b9ddd41bc16297 @bev-a-tron bev-a-tron committed with Jun 25, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 docs/quickstart.rst
View
@@ -514,8 +514,9 @@ attributes mentioned above::
return log_the_user_in(request.form['username'])
else:
error = 'Invalid username/password'
- # this is executed if the request method was GET or the
- # credentials were invalid
+ # the code below this is executed if the request method
+ # was GET or the credentials were invalid
+ return render_template('login.html', error=error)
What happens if the key does not exist in the `form` attribute? In that
case a special :exc:`KeyError` is raised. You can catch it like a

0 comments on commit 18134e7

Please sign in to comment.