Skip to content

Commit d6f5195

Browse files
committed
Check that there is no space in the name
1 parent c91a693 commit d6f5195

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

adaptive_scheduler/_server_support/slurm_run.py

+3
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ def slurm_run(
183183
RunManager
184184
185185
"""
186+
if " " in name:
187+
msg = "The name should not contain spaces."
188+
raise ValueError(msg)
186189
if partition is None:
187190
partitions = slurm_partitions()
188191
assert isinstance(partitions, dict)

0 commit comments

Comments
 (0)