We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09e069a commit 4bc1884Copy full SHA for 4bc1884
execution.py
@@ -622,8 +622,17 @@ def full_type_name(klass):
622
def validate_prompt(prompt):
623
outputs = set()
624
for x in prompt:
625
+ if 'class_type' not in prompt[x]:
626
+ error = {
627
+ "type": "invalid_prompt",
628
+ "message": f"Cannot execute due to a missing node",
629
+ "details": f"Node ID '#{x}'",
630
+ "extra_info": {}
631
+ }
632
+ return (False, error, [], [])
633
+
634
class_ = nodes.NODE_CLASS_MAPPINGS[prompt[x]['class_type']]
- if hasattr(class_, 'OUTPUT_NODE') and class_.OUTPUT_NODE == True:
635
+ if hasattr(class_, 'OUTPUT_NODE') and class_.OUTPUT_NODE is True:
636
outputs.add(x)
637
638
if len(outputs) == 0:
0 commit comments