Commit 9c4899d
committed
fix(spanner): guard against empty exc.errors in run_in_transaction
When run_in_transaction catches an Aborted exception with an empty
errors list (e.g. manually instantiated Aborted('...')), it crashes
with an uncaught IndexError on exc.errors[0]. Add a guard to fall
back to default_retry_delay when exc.errors is empty.
Closes #179031 parent 4f21b8b commit 9c4899d
1 file changed
Lines changed: 6 additions & 2 deletions
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
546 | | - | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
547 | 549 | | |
548 | 550 | | |
549 | 551 | | |
| |||
580 | 582 | | |
581 | 583 | | |
582 | 584 | | |
583 | | - | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
584 | 588 | | |
585 | 589 | | |
586 | 590 | | |
| |||
0 commit comments