Document that the return values of teardown functions are ignored

This commit is contained in:
Chris Rebert 2015-02-05 12:45:11 -08:00
parent eccee36964
commit 6a2524634d

View file

@ -1304,6 +1304,8 @@ class Flask(_PackageBoundObject):
When a teardown function was called because of a exception it will
be passed an error object.
The return values of teardown functions are ignored.
.. admonition:: Debug Note
In debug mode Flask will not tear down a request on an exception
@ -1338,6 +1340,8 @@ class Flask(_PackageBoundObject):
When a teardown function was called because of an exception it will
be passed an error object.
The return values of teardown functions are ignored.
.. versionadded:: 0.9
"""
self.teardown_appcontext_funcs.append(f)