Permalink
Browse files

Fix the appcontext_tearing_down example in docs

  • Loading branch information...
1 parent 43f4120 commit 81f951b7fabdffdf49a39b3c05142168a0925b14 @SimonSapin SimonSapin committed Aug 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/signals.rst
View
@@ -285,7 +285,7 @@ The following signals exist in Flask:
def close_db_connection(sender, **extra):
session.close()
- from flask import request_tearing_down
+ from flask import appcontext_tearing_down
appcontext_tearing_down.connect(close_db_connection, app)
This will also be passed an `exc` keyword argument that has a reference

0 comments on commit 81f951b

Please sign in to comment.