forked from blender/blender
Campbell Barton
324e6ca147
Resolves #115090, where exceptions from the text editor called `sys.excepthook` in v3.6 but not in v4.0. The error was caused by PyC_ExceptionBuffer calling PyErr_Display instead of PyErr_Print. While technically a regression in [0], the behavior in 3.6x wasn't working properly either since a user-defined `sys.excepthook` could prevent PyC_ExceptionBuffer from accessing the exception text. Resolve with the following changes: - BPy_errors_to_report has been updated not to print errors. Previously BPy_errors_to_report would *sometimes* print the error, which complicated situations where the caller wanted predictable behavior (always printing or never printing). - `PyErr_Print()` must be used to display errors to the output, this will call `sys.excepthook` as it used to. It's better not to rely on side effects of BPy_errors_to_report() for error handling. [0]: |
||
---|---|---|
.. | ||
bmesh | ||
generic | ||
gpu | ||
intern | ||
mathutils | ||
BPY_extern_clog.h | ||
BPY_extern_python.h | ||
BPY_extern_run.h | ||
BPY_extern.h | ||
CMakeLists.txt | ||
rna_dump.py |