Skip to content

Raising an error should lead to a failed node  #5

@jensschmeink

Description

@jensschmeink

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions