From 6a2524634dec3a7bc71a8b7076ab937d77253c6a Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Thu, 5 Feb 2015 12:45:11 -0800 Subject: [PATCH] Document that the return values of teardown functions are ignored --- flask/app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flask/app.py b/flask/app.py index bd721a4d..c45d640d 100644 --- a/flask/app.py +++ b/flask/app.py @@ -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)