summaryrefslogtreecommitdiffstats
path: root/ptpython
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-02-07 06:13:56 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-02-07 06:13:56 +0000
commit6318b60e94da1d616c3175c400a602ffc534b1e4 (patch)
treea4a491070ea9cdb49989a5b639c8e32620d9b3ae /ptpython
parentReleasing debian version 3.0.25-1. (diff)
downloadptpython-6318b60e94da1d616c3175c400a602ffc534b1e4.tar.xz
ptpython-6318b60e94da1d616c3175c400a602ffc534b1e4.zip
Merging upstream version 3.0.26.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ptpython')
-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