Skip to content

Commit

Permalink
Fixed a typo in the docs. This fixes #576 and #575
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Oct 7, 2012
1 parent 18413ed commit 5b462dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/signals.rst
Expand Up @@ -285,7 +285,7 @@ The following signals exist in Flask:
def close_db_connection(sender, **extra): def close_db_connection(sender, **extra):
session.close() session.close()


from flask import request_tearing_down from flask import appcontext_tearing_down
appcontext_tearing_down.connect(close_db_connection, app) appcontext_tearing_down.connect(close_db_connection, app)


This will also be passed an `exc` keyword argument that has a reference This will also be passed an `exc` keyword argument that has a reference
Expand Down

0 comments on commit 5b462dd

Please sign in to comment.