Line highlighting did not work for syntax errors.
authorIan Thompson <quornian@googlemail.com>
Sat, 9 Aug 2008 14:47:51 +0000 (14:47 +0000)
committerIan Thompson <quornian@googlemail.com>
Sat, 9 Aug 2008 14:47:51 +0000 (14:47 +0000)
source/blender/python/BPY_interface.c

index 48633d37fa2abdcda490fad0d1131a446d222b1a..05ea2d77ab919cae33ae8c8a0346d05f2d128a29 100644 (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" );