Skip to content

Commit

Permalink
Check format of shape names
Browse files Browse the repository at this point in the history
  • Loading branch information
milliams committed Oct 11, 2019
1 parent 1a33f13 commit 1968a54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/slurm/files/update_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get_limits() -> Dict[str, Dict[str, str]]:
if not isinstance(count, int):
raise SyntaxError
for shape in limits:
if not re.match(r"", shape):
if re.match(r"\w{2}\.", shape) is None:
raise ValueError
return limits

Expand Down

0 comments on commit 1968a54

Please sign in to comment.