ID 235098 - `NodegraphAPI.CreateNode()` is meant to raise `ValueError` exception in case of invalid node type name, but logs error message

Follow

Problem summary:

The NodegraphAPI.CreateNode() function is meant to raise a ValueError exception in case the given node type name does not match the name of any of the available node types. As of KATANA 2.1v2, the function instead logs an error message in this case. This has implications in places in the code that expect exceptions to be raised from CreateNode() calls.

Steps to reproduce:

  1. In a KATANA environment where no node type by the name of "bogus" is available, execute the following line of code in a Python tab:

NodegraphAPI.CreateNode('bogus', NodegraphAPI.GetRootNode())

Expected behaviour:

A ValueError exception is raised, with an exception message stating that no node type by the name of "bogus" is available.

Actual behaviour:

An error message is logged to the console.

Workaround:

No known workaround.

Reproduced versions/platforms:

  • 2.1v2/Linux
  • 2.5v3/Linux

Customer version/platform:

2.1v5/Linux

    We're sorry to hear that

    Please tell us why