Commit f785cb5
gh-146092: Handle _PyFrame_GetFrameObject() failures properly (GH-146124)
* Fix _PyFrame_GetLocals() and _PyFrame_GetLocals() error handling.
* _PyEval_ExceptionGroupMatch() now fails on _PyFrame_GetLocals()
error.
(cherry picked from commit 8eeb800)
Co-authored-by: Victor Stinner <vstinner@python.org>
(cherry picked from commit e1e4852)
1 parent c7d7e1c commit f785cb5
2 files changed
+18
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2093 | 2093 | | |
2094 | 2094 | | |
2095 | 2095 | | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
2096 | 2099 | | |
2097 | 2100 | | |
2098 | 2101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2031 | 2031 | | |
2032 | 2032 | | |
2033 | 2033 | | |
2034 | | - | |
2035 | | - | |
2036 | | - | |
2037 | | - | |
2038 | | - | |
2039 | | - | |
2040 | | - | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
2041 | 2042 | | |
| 2043 | + | |
| 2044 | + | |
2042 | 2045 | | |
2043 | 2046 | | |
2044 | 2047 | | |
| |||
2505 | 2508 | | |
2506 | 2509 | | |
2507 | 2510 | | |
| 2511 | + | |
| 2512 | + | |
| 2513 | + | |
| 2514 | + | |
| 2515 | + | |
2508 | 2516 | | |
2509 | 2517 | | |
2510 | 2518 | | |
| |||
0 commit comments