Skip to content
Myr

Update the signature of the teardown function (#3730)

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

authored by Jamiu Salimon · committed by GitHub · parent fa5aebc · Browse files · 1 file+1 added−1 removed
This commit

State

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

Trailers

  • Co-authored-by: David Lord <davidism@gmail.com>

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/appcontext.rst+1 added-1 removed
117 unmodified lines
118119 return g.db120121 @app.teardown_appcontext122 def teardown_db():122 def teardown_db(exception):123 db = g.pop('db', None)124125 if db is not None:126 db.close()
33 unmodified lines