diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-02-07 06:13:52 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-02-07 06:13:52 +0000 |
commit | e41964ceba22f391f77aa72a7ee8e4de39eee9b9 (patch) | |
tree | a6a97f4d2ed5e59ab11cbae6b403ddebc5effe00 | |
parent | Adding upstream version 3.0.25. (diff) | |
download | ptpython-e41964ceba22f391f77aa72a7ee8e4de39eee9b9.tar.xz ptpython-e41964ceba22f391f77aa72a7ee8e4de39eee9b9.zip |
Adding upstream version 3.0.26.upstream/3.0.26
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r-- | CHANGELOG | 7 | ||||
-rw-r--r-- | ptpython/printer.py | 2 | ||||
-rw-r--r-- | setup.py | 2 |
3 files changed, 9 insertions, 2 deletions
@@ -1,6 +1,13 @@ CHANGELOG ========= +3.0.26: 2024-02-06 +------------------ + +Fixes: +- Handle `GeneratorExit` exception when leaving the paginator. + + 3.0.25: 2023-12-14 ------------------ diff --git a/ptpython/printer.py b/ptpython/printer.py index 3618934..85bd9c8 100644 --- a/ptpython/printer.py +++ b/ptpython/printer.py @@ -155,7 +155,7 @@ class OutputPrinter: ) yield from formatted_result_repr return - except KeyboardInterrupt: + except (GeneratorExit, KeyboardInterrupt): raise # Don't catch here. except: # For bad code, `__getattr__` can raise something that's not an @@ -11,7 +11,7 @@ with open(os.path.join(os.path.dirname(__file__), "README.rst")) as f: setup( name="ptpython", author="Jonathan Slenders", - version="3.0.25", + version="3.0.26", url="https://github.com/prompt-toolkit/ptpython", description="Python REPL build on top of prompt_toolkit", long_description=long_description, |