Skip to content

Commit

Permalink
fix: a bug of enumerate in debug mode
Browse files Browse the repository at this point in the history
Signed-off-by: zjgemi <[email protected]>
  • Loading branch information
zjgemi committed Dec 22, 2023
1 parent 54ac7ae commit fae33c3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/dflow/step.py
Original file line number Diff line number Diff line change
Expand Up @@ -1499,8 +1499,10 @@ def handle_expr(val, scope):
OutputParameter)):
item_list = self.with_param.value
elif isinstance(self.with_param, ArgoVar):
item_list = eval(Expression(replace_argo_func(
self.with_param.expr)).eval(scope))
item_list = Expression(replace_argo_func(
self.with_param.expr)).eval(scope)
if isinstance(item_list, str):
item_list = eval(item_list)
elif isinstance(self.with_param, str):
self.with_param = render_expr(self.with_param, scope)
item_list = eval(self.with_param)
Expand Down

0 comments on commit fae33c3

Please sign in to comment.