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: