We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79e2791 commit 66922d2Copy full SHA for 66922d2
commit0/cli.py
@@ -12,6 +12,7 @@
12
from commit0.harness.constants import SPLIT, SPLIT_ALL
13
import subprocess
14
import yaml
15
+import os
16
17
commit0_app = typer.Typer(
18
no_args_is_help=True,
@@ -89,6 +90,11 @@ def write_commit0_dot_file(dot_file_path: str, config: dict) -> None:
89
90
91
92
def read_commit0_dot_file(dot_file_path: str) -> dict:
93
+ # Check if the file exists before attempting to read it
94
+ if not os.path.exists(dot_file_path):
95
+ raise FileNotFoundError(
96
+ f"The commit0 dot file '{dot_file_path}' does not exist."
97
+ )
98
with open(dot_file_path, "r") as f:
99
return yaml.load(f, Loader=yaml.FullLoader)
100
0 commit comments