mirror of
https://github.com/johndoe6345789/low-code-react-app-b.git
synced 2026-04-24 21:54:56 +00:00
fix: prevent error when validating non-existent JSON file
This commit is contained in:
@@ -708,6 +708,8 @@ def _coerce_content_output(output: str, path: str, label: str, debug: bool) -> s
|
||||
|
||||
|
||||
def _validate_and_repair_json_file(path: Path, label: str, debug: bool) -> None:
|
||||
if not path.exists():
|
||||
return
|
||||
try:
|
||||
json.loads(path.read_text(encoding="utf-8"))
|
||||
except json.JSONDecodeError as exc:
|
||||
|
||||
Reference in New Issue
Block a user