795 # ignore these |
795 # ignore these |
796 return |
796 return |
797 |
797 |
798 if exctype in [SyntaxError, IndentationError]: |
798 if exctype in [SyntaxError, IndentationError]: |
799 try: |
799 try: |
800 # tuple could only occure on Python 2, but not always! |
|
801 if type(excval) == tuple: |
800 if type(excval) == tuple: |
802 message, details = excval |
801 message, details = excval |
803 filename, lineno, charno, text = details |
802 filename, lineno, charno, text = details |
804 else: |
803 else: |
805 message = excval.msg |
804 message = excval.msg |