mirror of https://github.com/python/cpython
cope with class exceptions
This commit is contained in:
parent
ee6310a4de
commit
795a48cd4e
|
@ -381,7 +381,9 @@ def do_exec(win):
|
|||
except KeyboardInterrupt:
|
||||
print '[Interrupt]'
|
||||
except:
|
||||
msg = sys.exc_type
|
||||
if type(sys.exc_type) == type(''):
|
||||
msg = sys.exc_type
|
||||
else: msg = sys.exc_type.__name__
|
||||
if sys.exc_value <> None:
|
||||
msg = msg + ': ' + `sys.exc_value`
|
||||
if win.insertError:
|
||||
|
|
Loading…
Reference in New Issue