Skip to content

Commit d6127ae

Browse files
committed
work around lark 1.1.1 returning a data structure with a None-child,
will work (and tested) with earlier lark
1 parent 914c786 commit d6127ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data_algebra/parse_by_lark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def _r_walk_lark_tree(r_op):
185185
if op_name is None:
186186
raise ValueError("couldn't work out method name")
187187
args = []
188-
if len(r_op.children) > 1:
188+
if (len(r_op.children) > 1) and (r_op.children[1] is not None):
189189
raw_args = r_op.children[1].children
190190
args = [_r_walk_lark_tree(ai) for ai in raw_args]
191191
if var is not None:

0 commit comments

Comments
 (0)