Skip to content

Commit 2a22fa8

Browse files
committed
Add note about Py_getInput return value.
1 parent 37ae114 commit 2a22fa8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/python_bindings.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ class Py_StatefulActionNode final : public StatefulActionNode
5858
py::object Py_getInput(const TreeNode& node, const std::string& name)
5959
{
6060
py::object obj;
61+
62+
// The input could not exist on the blackboard, in which case we return Python
63+
// `None` instead of an invalid object.
6164
if (!node.getInput(name, obj).has_value())
6265
{
6366
return py::none();

0 commit comments

Comments
 (0)