Commit 0960980
authored
[Release-3.14][E2E Test] Prevent the bad IndexError when build image fails (#7171)
When build image fails, the image_list is empty but the code directly
accesses image_list[0], causing IndexError that masks the real error.
Add safety check to only access list elements when list is not empty.1 parent 4bea369 commit 0960980
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
428 | 429 | | |
429 | 430 | | |
430 | 431 | | |
| |||
0 commit comments