Skip to content

Commit 38ce68f

Browse files
authored
🎨 Palette: Fix silent json decode error in cli (#149)
1 parent f440f26 commit 38ce68f

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
@@ -902,7 +902,8 @@ def sync_transcript_history(bridge, transcript_path: str) -> set:
902902
continue
903903
try:
904904
entry = json.loads(line)
905-
except:
905+
except json.JSONDecodeError as e:
906+
global_console.print(f"[yellow]Warning: Failed to parse history line as JSON: {e}[/yellow]")
906907
continue
907908

908909
msg_id = entry.get("uuid") or entry.get("messageId") or entry.get("id")

0 commit comments

Comments
 (0)