Merge branch '1.1.x'
This commit is contained in:
commit
15a49e7297
5 changed files with 6 additions and 14 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue