From e0ab9a70d5e266529518b22a6df04a2f07a2e20f Mon Sep 17 00:00:00 2001 From: Valery Febvre Date: Sun, 9 May 2004 00:16:08 +0000 Subject: *** empty log message *** --- python/lasso.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'python/lasso.py') 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) -- cgit