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 2e69667 commit 55adbccCopy full SHA for 55adbcc
Lib/pdb.py
@@ -2632,13 +2632,15 @@ def _read_reply(self):
2632
case {"signal": str(signal)}:
2633
if signal == "INT":
2634
raise KeyboardInterrupt
2635
- elif signal != "EOF":
+ elif signal == "EOF":
2636
+ raise EOFError
2637
+ else:
2638
self.error(
2639
f"Received unrecognized signal: {signal}"
2640
)
2641
# Our best hope of recovering is to pretend we
2642
# got an EOF to exit whatever mode we're in.
- raise EOFError
2643
2644
case {
2645
"complete": {
2646
"text": str(text),
0 commit comments