Commit 19db216
committed
[core] node: Try/catch
Nodes with dynamic sizes may end up in a state where they have no chunk
(e.g. because there are no input images for the previous nodes). In this
case, the first chunk is the list cannot be accessed as it does not
exist yet, raising an `IndexError`.
`IndexError` is now caught, and the default execution mode is returned
instead.IndexErrors for nodes with dynamic sizes1 parent 7cac2bf commit 19db216
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1542 | 1542 | | |
1543 | 1543 | | |
1544 | 1544 | | |
1545 | | - | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
1546 | 1549 | | |
1547 | 1550 | | |
1548 | 1551 | | |
| |||
0 commit comments