Commit 5d5d68a
Raise a clear error for an empty command line (#1618)
A CommandLineTool with no baseCommand, arguments, or input bindings
produces an empty command list. This was passed straight to
subprocess.Popen([]), which crashed with a raw
"IndexError: list index out of range" deep inside subprocess.
Guard the empty case in JobBase._execute and raise a WorkflowException
with an actionable message instead. The existing handler turns this
into a clean permanentFail rather than an unhandled traceback.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 8949fc2 commit 5d5d68a
3 files changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
310 | 316 | | |
311 | 317 | | |
312 | 318 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
990 | 990 | | |
991 | 991 | | |
992 | 992 | | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
993 | 1002 | | |
994 | 1003 | | |
995 | 1004 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments