fix crash if workflow not present

This commit is contained in:
pythongosssss
2024-01-03 18:27:12 +00:00
parent c9bae148b5
commit 818078d516
+1 -1
View File
@@ -95,7 +95,7 @@ class MathExpression:
return expression
def get_widget_value(self, extra_pnginfo, prompt, node_name, widget_name):
workflow = extra_pnginfo["workflow"]
workflow = extra_pnginfo["workflow"] if "workflow" in extra_pnginfo else { "nodes": [] }
node_id = None
for node in workflow["nodes"]:
name = node["type"]