Skip to content

Commit d9ad6a3

Browse files
committed
Error if sync.py not found
1 parent fbe415d commit d9ad6a3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pr-checks/sync_back.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ def update_sync_py(sync_py_path: str, action_versions: Dict[str, str]) -> bool:
6868
True if file was modified, False otherwise
6969
"""
7070
if not os.path.exists(sync_py_path):
71-
print(f"Warning: {sync_py_path} not found")
72-
return False
71+
raise FileNotFoundError(f"Could not find {sync_py_path}")
7372

7473
with open(sync_py_path, 'r') as f:
7574
content = f.read()

0 commit comments

Comments
 (0)