From c21caf3210573a98a9f2e0e2e5899e98993d2098 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Thu, 13 Jul 2023 01:36:56 +0900 Subject: [PATCH] Handling the workflow execution of a node composed solely of optional inputs --- execution.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/execution.py b/execution.py index 851e43ec4..7a7a929c4 100644 --- a/execution.py +++ b/execution.py @@ -53,7 +53,7 @@ def map_node_over_list(obj, input_data_all, func, allow_interrupt=False): if hasattr(obj, "INPUT_IS_LIST"): intput_is_list = obj.INPUT_IS_LIST - if input_data_all is not None: + if input_data_all is not None and len(input_data_all) > 0: max_len_input = max([len(x) for x in input_data_all.values()]) else: max_len_input = 0