diff options
Diffstat (limited to 'python/lasso.py')
| -rw-r--r-- | python/lasso.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/python/lasso.py b/python/lasso.py index 7e7f4391..0e622806 100644 --- a/python/lasso.py +++ b/python/lasso.py @@ -70,7 +70,10 @@ class Node: return lassomod.node_get_attr_value(self, name) def get_child(self, name): - return Node(_obj=lassomod.node_get_child(self, name)) + obj = lassomod.node_get_child(self, name) + if obj: + return Node(_obj=obj) + return None def get_content(self): return lassomod.node_get_content(self) |
