docs: :exc:TypeError

This commit is contained in:
defuz 2014-11-05 08:16:27 +03:00
parent 5562acfdfc
commit 1501b79293
5 changed files with 5 additions and 5 deletions

View file

@ -570,7 +570,7 @@ To access parameters submitted in the URL (``?key=value``) you can use the
searchword = request.args.get('key', '')
We recommend accessing URL parameters with `get` or by catching the
`KeyError` because users might change the URL and presenting them a 400
:exc:`KeyError` because users might change the URL and presenting them a 400
bad request page in that case is not user friendly.
For a full list of methods and attributes of the request object, head over

View file

@ -92,7 +92,7 @@ If invalid JSON data was submitted Flask will now raise a
default :exc:`ValueError` bubble up. This has the advantage that you no
longer have to handle that error to avoid an internal server error showing
up for the user. If you were catching this down explicitly in the past
as `ValueError` you will need to change this.
as :exc:`ValueError` you will need to change this.
Due to a bug in the test client Flask 0.7 did not trigger teardown
handlers when the test client was used in a with statement. This was