Commit 6ccb875
committed
fix: eliminate TOCTOU race in yamlio.load_yaml()
Remove exists() pre-check and catch FileNotFoundError from read_text()
to provide a clear BundlerError even under race conditions.1 parent 5e2f9bc commit 6ccb875
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | 57 | | |
60 | 58 | | |
| 59 | + | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
0 commit comments