Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Thompson <quornian@googlemail.com>2008-08-09 18:47:51 +0400
committerIan Thompson <quornian@googlemail.com>2008-08-09 18:47:51 +0400
commit4c89ee7838c3162bca9045db857593b05fb42419 (patch)
treeee89a3252390542f255651e9934300f5ab20c75c
parented972db1a3a2aa7f340e4382b4f0094681b34ed3 (diff)
Line highlighting did not work for syntax errors.
-rw-r--r--source/blender/python/BPY_interface.c1
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" );