Fragile JSON extraction with silent fallback in prompt_to_card_pipeline.py #9
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
_extract_json_from_output()inprompt_to_card_pipeline.py(lines 56-81) has fragile parsing logic:Problems
except json.JSONDecodeError: passsilently discards the actual parse errorrfind("{")/rfind("}")which breaks on nested JSON or JSON containing}in string valuesFix