diff --git a/execution.py b/execution.py index e15eb4bda..e0a58562c 100644 --- a/execution.py +++ b/execution.py @@ -413,7 +413,9 @@ def format_value(x): def _is_intermediate_output(dynprompt, node_id): class_type = dynprompt.get_node(node_id)["class_type"] - class_def = nodes.NODE_CLASS_MAPPINGS[class_type] + class_def = nodes.NODE_CLASS_MAPPINGS.get(class_type) + if class_def is None: + return False return getattr(class_def, 'HAS_INTERMEDIATE_OUTPUT', False) def _send_cached_ui(server, node_id, display_node_id, cached, prompt_id, ui_outputs):