We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a96f0e commit 17d04b9Copy full SHA for 17d04b9
ptpython/printer.py
@@ -155,7 +155,7 @@ def _format_result_output(
155
)
156
yield from formatted_result_repr
157
return
158
- except KeyboardInterrupt:
+ except (GeneratorExit, KeyboardInterrupt):
159
raise # Don't catch here.
160
except:
161
# For bad code, `__getattr__` can raise something that's not an
0 commit comments