Merge branch '1.1.x'

This commit is contained in:
David Lord 2020-11-04 18:25:37 -08:00
commit d81e5f8b6c
5 changed files with 6 additions and 14 deletions

View file

@ -117,7 +117,7 @@ For example, you can manage a database connection using this pattern::
return g.db
@app.teardown_appcontext
def teardown_db():
def teardown_db(exception):
db = g.pop('db', None)
if db is not None: