Commit 794d8fe
committed
pythongh-134644: handle exceptions set in
The builtin input calls `PyOS_Readline` but seems to assume it does not set
exceptions: if the call fails it checks signals and runs handlers if any are
pending, which will cause an assertion failure if an exception has already been
set.
Fix this by only checking signals if an exception has not already been set.PyOS_Readline
1 parent 2fd09b0 commit 794d8fe
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2426 | 2426 | | |
2427 | 2427 | | |
2428 | 2428 | | |
2429 | | - | |
| 2429 | + | |
| 2430 | + | |
2430 | 2431 | | |
2431 | 2432 | | |
2432 | 2433 | | |
| |||
0 commit comments