--- D:\Python32\Lib\idlelib\PyShell.py Wed Sep 14 14:01:42 2011 +++ PyShell.py Wed Sep 14 13:51:42 2011 @@ -650,10 +650,11 @@ tkconsole = self.tkconsole text = tkconsole.text text.tag_remove("ERROR", "1.0", "end") - type, value, tb = sys.exc_info() - msg = value.msg or "" - lineno = value.lineno or 1 - offset = value.offset or 0 + type, value, tb = sys.exc_info() + msg = getattr(value, 'msg', '') or value + msg = msg or "" + lineno = getattr(value, 'lineno', '') or 1 + offset = getattr(value, 'offset', '') or 0 if offset == 0: lineno += 1 #mark end of offending line if lineno == 1: