Revision: 16037
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16037
Author:   quorn
Date:     2008-08-09 16:47:51 +0200 (Sat, 09 Aug 2008)

Log Message:
-----------
Line highlighting did not work for syntax errors.

Modified Paths:
--------------
    branches/soc-2008-quorn/source/blender/python/BPY_interface.c

Modified: branches/soc-2008-quorn/source/blender/python/BPY_interface.c
===================================================================
--- branches/soc-2008-quorn/source/blender/python/BPY_interface.c       
2008-08-09 10:50:59 UTC (rev 16036)
+++ branches/soc-2008-quorn/source/blender/python/BPY_interface.c       
2008-08-09 14:47:51 UTC (rev 16037)
@@ -556,6 +556,7 @@
        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" );


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to