Merge branch '1.1.x'

This commit is contained in:
David Lord 2020-11-04 18:25:37 -08:00
commit 15a49e7297
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
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: