diff --git a/sweagent/environment/utils.py b/sweagent/environment/utils.py index bea2656c1..5a64d4827 100644 --- a/sweagent/environment/utils.py +++ b/sweagent/environment/utils.py @@ -677,6 +677,9 @@ def postproc_instance_list(instances): raise ValueError(msg) if repo_path: + if not Path(repo_path).exists(): + msg = f"Specified repository path {repo_path} does not exist" + raise FileNotFoundError(msg) msg = "repo_path must be empty if running over multiple problem statements" raise ValueError(msg)