Commit 385f2b0
committed
python: fix error message in JobspecV1.per_resource
Problem: If neither ncores or nnodes is specified in the JobspecV1
per_resource constructor, an unhelpful TypeError is raised instead
of a useful error.
Catch the case where neither ncores or nnodes is specified to this
function and raise a specific error message.
Fixes #45471 parent ff48653 commit 385f2b0
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
746 | 746 | | |
747 | 747 | | |
748 | 748 | | |
| 749 | + | |
| 750 | + | |
749 | 751 | | |
750 | 752 | | |
751 | 753 | | |
| |||
0 commit comments