As a slight enhancement to the previous checkin, improve the
internal error reporting by moving message to IDLE console.
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index f0d7926..c0bd5d0 100644
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -722,9 +722,12 @@
else:
self.showtraceback()
except:
- if self.rpcclt:
- print>>sys.stderr, "IDLE internal error in runcode()"
+ if use_subprocess:
+ print >> self.tkconsole.stderr, \
+ "IDLE internal error in runcode()"
self.showtraceback()
+ if use_subprocess:
+ self.tkconsole.endexecuting()
finally:
if not use_subprocess:
self.tkconsole.endexecuting()