diff --git a/docs/patterns/sqlite3.rst b/docs/patterns/sqlite3.rst index d0ec5a27..bc471f66 100644 --- a/docs/patterns/sqlite3.rst +++ b/docs/patterns/sqlite3.rst @@ -34,7 +34,7 @@ executed the before-request handlers for you. If you are attempting to use the database from a script or the interactive Python shell you would have to do something like this:: - with app.test_request_context() + with app.test_request_context(): app.preprocess_request() # now you can use the g.db object