Browse Source

Fixed a typo in the docs. This fixes #576 and #575

pull/575/merge
Armin Ronacher 12 years ago
parent
commit
5b462dd382
  1. 2
      docs/signals.rst

2
docs/signals.rst

@ -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

Loading…
Cancel
Save