Summary
Raising an error inside a Python Scripting Node should lead to an error for the Node ("red light").
Minimum code example in the scripting node. e.g.:
raise Exception("My error")
On a side note, can one influence the outcome of the node by something like return False ?
What is improved by the feature?
If there is an error inside the script that should halt the downstream evaluation, the node should fail and no downstream nodes be triggered.
Current workarounds
Using a bool outport and evaluating True/False in the next node. But that is not intuitive and only works with scripting nodes.
GTlab environment
(Add details to your GTlab environment. If the feature request relates to a module, please also add the module and its version.)
- Operating System+version: Ubuntu
- GTlab version: 2.0.9
Summary
Raising an error inside a Python Scripting Node should lead to an error for the Node ("red light").
Minimum code example in the scripting node. e.g.:
On a side note, can one influence the outcome of the node by something like
return False?What is improved by the feature?
If there is an error inside the script that should halt the downstream evaluation, the node should fail and no downstream nodes be triggered.
Current workarounds
Using a bool outport and evaluating True/False in the next node. But that is not intuitive and only works with scripting nodes.
GTlab environment
(Add details to your GTlab environment. If the feature request relates to a module, please also add the module and its version.)