mirror of
https://github.com/python/cpython.git
synced 2025-10-18 12:48:57 +00:00
As a slight enhancement to the previous checkin, improve the
internal error reporting by moving message to IDLE console.
This commit is contained in:
parent
312e5afb51
commit
be332e4ba7
1 changed files with 5 additions and 2 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue