From 8b0d910a792581ba6ad02901a4d76db646e97da9 Mon Sep 17 00:00:00 2001 From: johndoe6345789 Date: Mon, 19 Jan 2026 20:30:46 +0000 Subject: [PATCH] fix: prevent error when validating non-existent JSON file --- scripts/component_migration_orchestrator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/component_migration_orchestrator.py b/scripts/component_migration_orchestrator.py index d7ff60c..7245265 100644 --- a/scripts/component_migration_orchestrator.py +++ b/scripts/component_migration_orchestrator.py @@ -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: