diff --git a/src/specify_cli/workflows/engine.py b/src/specify_cli/workflows/engine.py index 13fd633338..2b5a861005 100644 --- a/src/specify_cli/workflows/engine.py +++ b/src/specify_cli/workflows/engine.py @@ -1582,10 +1582,12 @@ def list_runs(self) -> list[dict[str, Any]]: if not run_dir.is_dir(): continue state_path = run_dir / "state.json" - if state_path.exists(): + try: with open(state_path, encoding="utf-8") as f: state_data = json.load(f) runs.append(state_data) + except (FileNotFoundError, json.JSONDecodeError, OSError): + continue return runs