Display of Python exception messages not working for all exceptions
There is a need to call PyErr_NormalizeException
to get values that are suitable for the traceback.format_exception
function. When the format_exception call fails, only the exception type name is shown to SCL console:
org.simantics.pythonlink.PythonException: NameError
instead of
org.simantics.pythonlink.PythonException: Traceback (most recent call last):
File "SCL_INPUT", line 1, in <module>
NameError: name 'foo' is not defined