From ddbd7a9437db6307756493448fb8f1b8ba5356dd Mon Sep 17 00:00:00 2001 From: kshitijk4poor <82637225+kshitijk4poor@users.noreply.github.com> Date: Tue, 15 Sep 2026 12:24:49 +0530 Subject: [PATCH] fix(cli): only a missing column/table means the read-only store needs migration Other OperationalErrors (locked, disk I/O) keep their real message. --- hermes_cli/sessions_cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hermes_cli/sessions_cmd.py b/hermes_cli/sessions_cmd.py index 68ef577183..f9c1497d88 100644 --- a/hermes_cli/sessions_cmd.py +++ b/hermes_cli/sessions_cmd.py @@ -998,7 +998,7 @@ def cmd_sessions(args, sessions_parser=None): try: return handler(db, args) except sqlite3.OperationalError as e: - if not observational: + if not observational or not str(e).lower().startswith("no such "): raise # A read-only opener skips schema migration, so a store from an older release can lack a column. print(f"Error: session database needs migration — run any writing hermes command first ({e})")