Skip to content
Myr

Fixes #519 by adding return statement

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by bev-a-tron · committed by bev-a-tron · parent 9be47f5 · Browse files · 1 file+3 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:docs/quickstart.rst+3 added-2 removed
512 unmodified lines
513 request.form['password']):514 return log_the_user_in(request.form['username'])515 else:516 error = 'Invalid username/password'517 # this is executed if the request method was GET or the518 # credentials were invalid517 # the code below this is executed if the request method518 # was GET or the credentials were invalid519 return render_template('login.html', error=error)520521What happens if the key does not exist in the `form` attribute? In that522case a special :exc:`KeyError` is raised. You can catch it like a523standard :exc:`KeyError` but if you don't do that, a HTTP 400 Bad Request
330 unmodified lines