From 9d824db41c930126db7bc6af5c54eec670cf086c Mon Sep 17 00:00:00 2001 From: Jamiu Salimon Date: Thu, 15 Oct 2020 22:02:54 +0100 Subject: [PATCH] Update the signature of the teardown function (#3730) Co-authored-by: David Lord --- docs/appcontext.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/appcontext.rst b/docs/appcontext.rst index 53c5ad36..628ddca6 100644 --- a/docs/appcontext.rst +++ b/docs/appcontext.rst @@ -119,7 +119,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: