summaryrefslogtreecommitdiffstats
path: root/ptpython/printer.py
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 /ptpython/printer.py
parentAdding upstream version 3.0.25. (diff)
downloadptpython-upstream.tar.xz
ptpython-upstream.zip
Adding upstream version 3.0.26.upstream/3.0.26upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ptpython/printer.py')
-rw-r--r--ptpython/printer.py2
1 files changed, 1 insertions, 1 deletions
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