Merge pull request #3056 from tirkarthi/fix-syntax-warning

Fix syntax warning in docstring
This commit is contained in:
David Lord 2019-01-06 10:25:47 -08:00 committed by GitHub
commit 10d0ed68a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1678,16 +1678,17 @@ class Flask(_PackageBoundObject):
return False return False
def handle_user_exception(self, e): def handle_user_exception(self, e):
"""This method is called whenever an exception occurs that should be """This method is called whenever an exception occurs that
handled. A special case are should be handled. A special case is :class:`~werkzeug
:class:`~werkzeug.exception.HTTPException`\s which are forwarded by .exceptions.HTTPException` which is forwarded to the
this function to the :meth:`handle_http_exception` method. This :meth:`handle_http_exception` method. This function will either
function will either return a response value or reraise the return a response value or reraise the exception with the same
exception with the same traceback. traceback.
.. versionchanged:: 1.0 .. versionchanged:: 1.0
Key errors raised from request data like ``form`` show the the bad Key errors raised from request data like ``form`` show the
key in debug mode rather than a generic bad request message. bad key in debug mode rather than a generic bad request
message.
.. versionadded:: 0.7 .. versionadded:: 0.7
""" """