fix(ucepsa): read deployment mode from dict cursor
This commit is contained in:
parent
faf1804558
commit
b2a09f3826
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user