Line highlighting did not work for syntax errors.

This commit is contained in:
2008-08-09 14:47:51 +00:00
parent ed972db1a3
commit 4c89ee7838

View File

@@ -556,6 +556,7 @@ void BPY_Err_Handle( char *script_name )
if( exception
&& PyErr_GivenExceptionMatches( exception, PyExc_SyntaxError ) ) {
/* no traceback available when SyntaxError */
PyErr_NormalizeException( &exception, &err, &tb );
PyErr_Restore( exception, err, tb ); /* takes away reference! */
PyErr_Print( );
v = PyObject_GetAttrString( err, "lineno" );