Unverified Commit ed72238f authored by Hailey Schoelkopf's avatar Hailey Schoelkopf Committed by GitHub
Browse files

make write_out.py explicitly error if no splits match (#1796)


Co-authored-by: default avatarlintangsutawika <lintang@eleuther.ai>
parent 5c7cba23
......@@ -70,6 +70,11 @@ def main():
if docs is not None:
iters.append(docs)
if len(iters) == 0:
raise ValueError(
f"Passed --sets '{args.sets}' but this task has no splits which match. Please specify a different --sets value."
)
docs = join_iters(iters)
with open(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment