diff options
author | Ian Thompson <quornian@googlemail.com> | 2008-08-09 18:47:51 +0400 |
---|---|---|
committer | Ian Thompson <quornian@googlemail.com> | 2008-08-09 18:47:51 +0400 |
commit | 4c89ee7838c3162bca9045db857593b05fb42419 (patch) | |
tree | ee89a3252390542f255651e9934300f5ab20c75c | |
parent | ed972db1a3a2aa7f340e4382b4f0094681b34ed3 (diff) |
Line highlighting did not work for syntax errors.
-rw-r--r-- | source/blender/python/BPY_interface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/python/BPY_interface.c b/source/blender/python/BPY_interface.c index 48633d37fa2..05ea2d77ab9 100644 --- a/source/blender/python/BPY_interface.c +++ b/source/blender/python/BPY_interface.c @@ -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" ); |