summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-02-07 06:13:52 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-02-07 06:13:52 +0000
commite41964ceba22f391f77aa72a7ee8e4de39eee9b9 (patch)
treea6a97f4d2ed5e59ab11cbae6b403ddebc5effe00
parentAdding upstream version 3.0.25. (diff)
downloadptpython-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--CHANGELOG7
-rw-r--r--ptpython/printer.py2
-rw-r--r--setup.py2
3 files changed, 9 insertions, 2 deletions
diff --git a/CHANGELOG b/CHANGELOG
index e827700..d873862 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -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
diff --git a/setup.py b/setup.py
index bc1241b..a54da35 100644
--- a/setup.py
+++ b/setup.py
@@ -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,