Commit be332e4b authored by Kurt B. Kaiser's avatar Kurt B. Kaiser

As a slight enhancement to the previous checkin, improve the

internal error reporting by moving message to IDLE console.
parent 312e5afb
...@@ -722,9 +722,12 @@ class ModifiedInterpreter(InteractiveInterpreter): ...@@ -722,9 +722,12 @@ class ModifiedInterpreter(InteractiveInterpreter):
else: else:
self.showtraceback() self.showtraceback()
except: except:
if self.rpcclt: if use_subprocess:
print>>sys.stderr, "IDLE internal error in runcode()" print >> self.tkconsole.stderr, \
"IDLE internal error in runcode()"
self.showtraceback() self.showtraceback()
if use_subprocess:
self.tkconsole.endexecuting()
finally: finally:
if not use_subprocess: if not use_subprocess:
self.tkconsole.endexecuting() self.tkconsole.endexecuting()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment