summaryrefslogtreecommitdiffstats
path: root/ptpython/printer.py
diff options
context:
space:
mode:
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