Commit 1d3e7e2

benny-dou <60535774+benny-dou@users.noreply.github.com>
2025-06-15 07:38:27
fix(turso): handle null value in parsing turso response
1 parent c3095fb
Changed files (1)
src
database
src/database/turso.py
@@ -265,4 +265,4 @@ def turso_parse_resp(resp: dict) -> list[dict]:
     """Parse turso SELECT response."""
     cols = glom(resp, "results.0.response.result.cols", default=[])
     rows = glom(resp, "results.0.response.result.rows", default=[])
-    return [{col["name"]: x["value"] for x, col in zip(row, cols, strict=True)} for row in rows]
+    return [{col["name"]: x.get("value", "") for x, col in zip(row, cols, strict=True)} for row in rows]