Blender Git Loki
Git Commits -> Revision f5060bc
Revision f5060bc by Campbell Barton (master) April 13, 2021, 05:28 (GMT) |
PyAPI: support retrieving the exception when running a string - Optionally get the error as a single line. - Support access the error as an allocated string. - PyC_ExceptionBuffer_Simple was always printing to the `stdout` while PyC_ExceptionBuffer didn't, now either print to the output. Without this, callers are unable to do anything with the error string. |
Commit Details:
Full Hash: f5060bc90118c88593fd213728bf58894fa6394c
Parent Commit: 8d9fd04
Lines Changed: +106, -44
8 Modified Paths:
/source/blender/editors/include/ED_numinput.h (+3, -2) (Diff)
/source/blender/editors/interface/interface.c (+14, -2) (Diff)
/source/blender/editors/interface/interface_context_menu.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_region_tooltip.c (+5, -5) (Diff)
/source/blender/editors/util/numinput.c (+20, -5) (Diff)
/source/blender/python/BPY_extern_run.h (+20, -4) (Diff)
/source/blender/python/generic/py_capi_utils.c (+0, -1) (Diff)
/source/blender/python/intern/bpy_interface_run.c (+43, -24) (Diff)
/source/blender/editors/interface/interface.c (+14, -2) (Diff)
/source/blender/editors/interface/interface_context_menu.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_region_tooltip.c (+5, -5) (Diff)
/source/blender/editors/util/numinput.c (+20, -5) (Diff)
/source/blender/python/BPY_extern_run.h (+20, -4) (Diff)
/source/blender/python/generic/py_capi_utils.c (+0, -1) (Diff)
/source/blender/python/intern/bpy_interface_run.c (+43, -24) (Diff)