mirror of
https://github.com/python/cpython.git
synced 2025-11-11 19:12:05 +00:00
[3.13] gh-131878: Handle top level exceptions in new pyrepl and prevent of closing it (GH-131910) (GH-133445)
Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>
This commit is contained in:
parent
f371b23bab
commit
87b14c8f21
2 changed files with 6 additions and 0 deletions
|
|
@ -163,3 +163,8 @@ def maybe_run_command(statement: str) -> bool:
|
|||
except MemoryError:
|
||||
console.write("\nMemoryError\n")
|
||||
console.resetbuffer()
|
||||
except SystemExit:
|
||||
raise
|
||||
except:
|
||||
console.showtraceback()
|
||||
console.resetbuffer()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue