Skip to content

Commit cb10571

Browse files
committed
🎨 Palette: Improve JSON parse error visibility in CLI
1 parent 38ce68f commit cb10571

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/ledgermind/server/cli.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,8 @@ def sync_transcript_history(bridge, transcript_path: str) -> set:
884884
if isinstance(ctx, str):
885885
try:
886886
ctx = json.loads(ctx)
887-
except:
887+
except json.JSONDecodeError as e:
888+
global_console.print(f"[yellow]Warning: Failed to parse context JSON: {e}[/yellow]")
888889
ctx = {}
889890
if isinstance(ctx, dict) and "transcript_id" in ctx:
890891
processed_ids.add(ctx["transcript_id"])

0 commit comments

Comments
 (0)