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:
Diffstat (limited to 'source/blender/python/intern/bpy_traceback.c')
-rw-r--r--source/blender/python/intern/bpy_traceback.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_traceback.c b/source/blender/python/intern/bpy_traceback.c
index 1c545774203..45977ba400c 100644
--- a/source/blender/python/intern/bpy_traceback.c
+++ b/source/blender/python/intern/bpy_traceback.c
@@ -165,6 +165,10 @@ finally:
bool python_script_error_jump(
const char *filepath, int *r_lineno, int *r_offset, int *r_lineno_end, int *r_offset_end)
{
+ /* WARNING(@campbellbarton): The normalized exception is restored (loosing line number info).
+ * Ideally this would leave the exception state as it found it, but that needs to be done
+ * carefully with regards to reference counting, see: T97731. */
+
bool success = false;
PyObject *exception, *value;
PyTracebackObject *tb;