Skip to content
Myr

Document that the return values of teardown functions are ignored

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Chris Rebert · committed by Chris Rebert · parent eccee36 · Browse files · 1 file+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:flask/app.py+4 added
1302 unmodified lines
13031304 When a teardown function was called because of a exception it will1305 be passed an error object.13061307 The return values of teardown functions are ignored.13081309 .. admonition:: Debug Note13101311 In debug mode Flask will not tear down a request on an exception1312 immediately. Instead it will keep it alive so that the interactive
26 unmodified lines
13391340 When a teardown function was called because of an exception it will1341 be passed an error object.13421343 The return values of teardown functions are ignored.13441345 .. versionadded:: 0.91346 """1347 self.teardown_appcontext_funcs.append(f)1348 return f
572 unmodified lines