Fix text editor exceptions showing twice in the console

This commit is contained in:
Campbell Barton
2024-02-04 15:16:47 +11:00
parent c2444131f4
commit 77b49e1373

View File

@@ -222,7 +222,9 @@ static bool python_script_exec(
}
}
}
PyErr_Print();
if (!reports) {
PyErr_Print();
}
PyErr_Clear();
}
else {