[Bf-blender-cvs] [5120c78dcf2] soc-2020-info-editor: Fix: show python evaluation errors in info editor
Mateusz GrzeliÅski
noreply at git.blender.org
Thu Jul 2 23:24:27 CEST 2020
Commit: 5120c78dcf2fbb7443bbbfb4468690139b384c42
Author: Mateusz Grzeliński
Date: Thu Jul 2 23:24:20 2020 +0200
Branches: soc-2020-info-editor
https://developer.blender.org/rB5120c78dcf2fbb7443bbbfb4468690139b384c42
Fix: show python evaluation errors in info editor
printing PyErr also clear it. That caused only syntax errors to be printed
===================================================================
M source/blender/python/intern/bpy_traceback.c
===================================================================
diff --git a/source/blender/python/intern/bpy_traceback.c b/source/blender/python/intern/bpy_traceback.c
index e92a0b788ea..f2565a9fbfc 100644
--- a/source/blender/python/intern/bpy_traceback.c
+++ b/source/blender/python/intern/bpy_traceback.c
@@ -168,7 +168,6 @@ void python_script_error_jump(const char *filepath, int *lineno, int *offset)
else {
PyErr_NormalizeException(&exception, &value, (PyObject **)&tb);
PyErr_Restore(exception, value, (PyObject *)tb); /* takes away reference! */
- PyErr_Print();
for (tb = (PyTracebackObject *)PySys_GetObject("last_traceback");
tb && (PyObject *)tb != Py_None;
More information about the Bf-blender-cvs
mailing list