Repository navigation
Commit 83a66f9
committed
fix: use missing_ok=True in extension ZIP cleanup
Replace check-then-act pattern with unlink(missing_ok=True) to eliminate
TOCTOU race condition in finally blocks.1 parent f36634b commit 83a66f9
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
602 | | - | |
603 | | - | |
| 602 | + | |
604 | 603 | | |
605 | 604 | | |
606 | 605 | | |
| |||
670 | 669 | | |
671 | 670 | | |
672 | 671 | | |
673 | | - | |
674 | | - | |
| 672 | + | |
675 | 673 | | |
676 | 674 | | |
677 | 675 | | |
| |||
0 commit comments