Commit 2fba760
committed
flux-mini: fix bulksubmit error on zero jobs
Problem: when zero jobs are given to bulksubmit, it fails with a
ZeroDivisionError when printing the progress bar, or (if no
progress bar) it fails because self.flux_handle was not
initialized.
Solution: check for zero jobs and throw a reasonable error.1 parent af1e0bc commit 2fba760
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1374 | 1374 | | |
1375 | 1375 | | |
1376 | 1376 | | |
| 1377 | + | |
| 1378 | + | |
1377 | 1379 | | |
1378 | 1380 | | |
1379 | 1381 | | |
| |||
0 commit comments