Kaydet (Commit) 795a48cd authored tarafından Guido van Rossum's avatar Guido van Rossum

cope with class exceptions

üst ee6310a4
......@@ -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:
......
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