From b2a09f3826422ba9ddca66dc5d3fc3c0fe1ab0c8 Mon Sep 17 00:00:00 2001 From: Victor Fraile Garcia Date: Fri, 17 Jul 2026 11:47:18 +0200 Subject: [PATCH] fix(ucepsa): read deployment mode from dict cursor --- ucepsa/edge-oee-demo/tools/li_context_admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ucepsa/edge-oee-demo/tools/li_context_admin.py b/ucepsa/edge-oee-demo/tools/li_context_admin.py index 9d8f1f6..190e2f2 100644 --- a/ucepsa/edge-oee-demo/tools/li_context_admin.py +++ b/ucepsa/edge-oee-demo/tools/li_context_admin.py @@ -80,7 +80,7 @@ def deployment_mode(cur) -> str: row = cur.fetchone() if not row: raise RuntimeError("No existe deployment_config CUTTERS") - return str(row[0]) + return str(row["mode"]) def print_json(payload: Any) -> None: @@ -435,5 +435,5 @@ if __name__ == "__main__": try: raise SystemExit(main()) except Exception as exc: - print(f"[ERROR] {exc}", file=sys.stderr) + print(f"[ERROR] {type(exc).__name__}: {exc!r}", file=sys.stderr) raise SystemExit(1)