From 77b49e1373f623c126d18e8122d4910bdffa3d2a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 4 Feb 2024 15:16:47 +1100 Subject: [PATCH] Fix text editor exceptions showing twice in the console --- source/blender/python/intern/bpy_interface_run.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/blender/python/intern/bpy_interface_run.cc b/source/blender/python/intern/bpy_interface_run.cc index 3cf2c813fc0..b74ad667d52 100644 --- a/source/blender/python/intern/bpy_interface_run.cc +++ b/source/blender/python/intern/bpy_interface_run.cc @@ -222,7 +222,9 @@ static bool python_script_exec( } } } - PyErr_Print(); + if (!reports) { + PyErr_Print(); + } PyErr_Clear(); } else {