Skip to content

Commit 4c5fe92

Browse files
committed
fix the None issue
1 parent ea24908 commit 4c5fe92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/data_utils/data_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def code_seq_transform(self, init_code_seq, reserved_dfs):
310310
st = ed
311311
continue
312312
ast_tree = ast_tree['body'][0]['value']
313-
if 'func' not in ast_tree:
313+
if ast_tree is None or 'func' not in ast_tree:
314314
st = ed
315315
continue
316316
func = ast_tree['func']

0 commit comments

Comments
 (0)