(exc: BaseException | None)
| 99 | |
| 100 | @app.teardown_appcontext |
| 101 | def close_request_store(exc: BaseException | None) -> None: |
| 102 | s = g.pop("store", None) |
| 103 | if s is not None: |
| 104 | s.close() |
| 105 | |
| 106 | # Read the DB SHA256 once at startup. The file is computed at Docker |
| 107 | # build time (see Dockerfile); it won't exist in dev unless created |