diff options
author | Frederick Muriuki Muriithi | 2023-06-05 05:08:56 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-06-05 05:09:37 +0300 |
commit | e5daa1af349c28840bdcc026b8f66065f19c8b1b (patch) | |
tree | 247799706821803af0d7da7e4c1ca76aadd2a034 /gn3/auth/db.py | |
parent | 0eb9201b056f91aca4aa6068b7f5e3b8a028dcc0 (diff) | |
download | genenetwork3-e5daa1af349c28840bdcc026b8f66065f19c8b1b.tar.gz |
Handle unhandled SQLite3 errors.
Diffstat (limited to 'gn3/auth/db.py')
-rw-r--r-- | gn3/auth/db.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gn3/auth/db.py b/gn3/auth/db.py index b8c91e9..9d5463f 100644 --- a/gn3/auth/db.py +++ b/gn3/auth/db.py @@ -48,6 +48,7 @@ class DbCursor(Protocol): @contextlib.contextmanager def connection(db_path: str, row_factory: Callable = sqlite3.Row) -> Iterator[DbConnection]: """Create the connection to the auth database.""" + logging.debug(f"SQLite3 DB Path: '{db_path}'.") conn = sqlite3.connect(db_path) conn.row_factory = row_factory conn.set_trace_callback(logging.debug) |