Skip to content

Commit

Permalink
More helpful message if --repo_path doesn't exist (#764)
Browse files Browse the repository at this point in the history
Closes #763
Also see #761
  • Loading branch information
klieret authored Sep 12, 2024
1 parent 55fec07 commit b097d7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sweagent/environment/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit b097d7a

Please sign in to comment.