Skip to content

Commit 26f03e1

Browse files
committed
throw more helpful error
1 parent 424bdd6 commit 26f03e1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

py/math_expression.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,10 @@ def get_widget_value(self, extra_pnginfo, prompt, node_name, widget_name):
146146
values = prompt[str(node_id)]
147147
if "inputs" in values:
148148
if widget_name in values["inputs"]:
149-
return values["inputs"][widget_name]
149+
value = values["inputs"][widget_name]
150+
if isinstance(value, list):
151+
raise ValueError("Converted widgets are not supported via named reference, use the inputs instead.")
152+
return value
150153
raise NameError(f"Widget not found: {node_name}.{widget_name}")
151154
raise NameError(f"Node not found: {node_name}.{widget_name}")
152155

0 commit comments

Comments
 (0)