Skip to content

Commit cca18e6

Browse files
committed
fix
1 parent fb12028 commit cca18e6

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

eval_protocol/cli_commands/create_rft.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -513,15 +513,15 @@ def create_rft_command(args) -> int:
513513
rel = abs_path
514514
selected_entry = f"{rel}::{func_name}"
515515
break
516-
# If still unresolved and multiple tests exist, fail fast to avoid uploading unintended evaluators
517-
if selected_entry is None:
518-
print(
519-
f"Error: Multiple evaluation tests found, and the selected evaluator_id {evaluator_id} does not match any discovered test.\n"
520-
" Please re-run specifying the evaluator id.\n"
521-
" Hints:\n"
522-
" - eval-protocol create rft --evaluator-id <existing-evaluator-id>\n"
523-
)
524-
return 1
516+
# If still unresolved and multiple tests exist, fail fast to avoid uploading unintended evaluators
517+
if selected_entry is None and len(tests) > 1:
518+
print(
519+
f"Error: Multiple evaluation tests found, and the selected evaluator_id {evaluator_id} does not match any discovered test.\n"
520+
" Please re-run specifying the evaluator id.\n"
521+
" Hints:\n"
522+
" - eval-protocol create rft --evaluator-id <existing-evaluator-id>\n"
523+
)
524+
return 1
525525

526526
upload_args = argparse.Namespace(
527527
path=project_root,

0 commit comments

Comments
 (0)