Skip to content

Commit be237bd

Browse files
committed
Ignore missing metadata
1 parent 9694b84 commit be237bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

comfyui_to_python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def generate_workflow(self, load_order: List, queue_size: int = 1) -> str:
213213
for i, input in enumerate(input_types.get("required", {}).keys()):
214214
if input not in inputs:
215215
input_var = f"{input}{len(arg_inputs)+1}"
216-
arg_inputs.append((input_var, f"Argument {i}, input `{input}` for node \\\"{data['_meta'].get('title', class_type)}\\\" id {idx}"))
216+
arg_inputs.append((input_var, f"Argument {i}, input `{input}` for node \\\"{data.get('_meta', {}).get('title', class_type)}\\\" id {idx}"))
217217
print("WARNING: Missing required input", input, "for", class_type)
218218
print("That will be CLI arg " + str(len(arg_inputs)))
219219
missing.append((input, input_var, len(arg_inputs)))

0 commit comments

Comments
 (0)