As a slight enhancement to the previous checkin, improve the

internal error reporting by moving message to IDLE console.
This commit is contained in:
Kurt B. Kaiser 2006-08-09 17:47:15 +00:00
parent 312e5afb51
commit be332e4ba7
1 changed files with 5 additions and 2 deletions

View File

@ -722,9 +722,12 @@ class ModifiedInterpreter(InteractiveInterpreter):
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()