801 else: |
801 else: |
802 message = excval.msg |
802 message = excval.msg |
803 filename = excval.filename |
803 filename = excval.filename |
804 lineno = excval.lineno |
804 lineno = excval.lineno |
805 charno = excval.offset |
805 charno = excval.offset |
806 |
|
807 if charno is None: |
|
808 charno = 0 |
|
809 |
806 |
810 filename = os.path.abspath(filename) |
807 if filename is None: |
811 realSyntaxError = os.path.exists(filename) |
808 realSyntaxError = False |
|
809 else: |
|
810 if charno is None: |
|
811 charno = 0 |
|
812 |
|
813 filename = os.path.abspath(filename) |
|
814 realSyntaxError = os.path.exists(filename) |
|
815 |
812 except (AttributeError, ValueError): |
816 except (AttributeError, ValueError): |
813 message = "" |
817 message = "" |
814 filename = "" |
818 filename = "" |
815 lineno = 0 |
819 lineno = 0 |
816 charno = 0 |
820 charno = 0 |