forked from orbit-oss/flask
Merge pull request #3056 from tirkarthi/fix-syntax-warning
Fix syntax warning in docstring
This commit is contained in:
commit
10d0ed68a3
1 changed files with 9 additions and 8 deletions
17
flask/app.py
17
flask/app.py
|
|
@ -1678,16 +1678,17 @@ class Flask(_PackageBoundObject):
|
|||
return False
|
||||
|
||||
def handle_user_exception(self, e):
|
||||
"""This method is called whenever an exception occurs that should be
|
||||
handled. A special case are
|
||||
:class:`~werkzeug.exception.HTTPException`\s which are forwarded by
|
||||
this function to the :meth:`handle_http_exception` method. This
|
||||
function will either return a response value or reraise the
|
||||
exception with the same traceback.
|
||||
"""This method is called whenever an exception occurs that
|
||||
should be handled. A special case is :class:`~werkzeug
|
||||
.exceptions.HTTPException` which is forwarded to the
|
||||
:meth:`handle_http_exception` method. This function will either
|
||||
return a response value or reraise the exception with the same
|
||||
traceback.
|
||||
|
||||
.. versionchanged:: 1.0
|
||||
Key errors raised from request data like ``form`` show the the bad
|
||||
key in debug mode rather than a generic bad request message.
|
||||
Key errors raised from request data like ``form`` show the
|
||||
bad key in debug mode rather than a generic bad request
|
||||
message.
|
||||
|
||||
.. versionadded:: 0.7
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue