Skip to content

Commit c08f97f

Browse files
authored
fix regression in V3 nodes processing (#11375)
1 parent 8871438 commit c08f97f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

comfy_api/latest/_io.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,12 +1556,12 @@ async def EXECUTE_NORMALIZED_ASYNC(cls, *args, **kwargs) -> NodeOutput:
15561556

15571557
@final
15581558
@classmethod
1559-
def PREPARE_CLASS_CLONE(cls, v3_data: V3Data) -> type[ComfyNode]:
1559+
def PREPARE_CLASS_CLONE(cls, v3_data: V3Data | None) -> type[ComfyNode]:
15601560
"""Creates clone of real node class to prevent monkey-patching."""
15611561
c_type: type[ComfyNode] = cls if is_class(cls) else type(cls)
15621562
type_clone: type[ComfyNode] = shallow_clone_class(c_type)
15631563
# set hidden
1564-
type_clone.hidden = HiddenHolder.from_dict(v3_data["hidden_inputs"])
1564+
type_clone.hidden = HiddenHolder.from_dict(v3_data["hidden_inputs"] if v3_data else None)
15651565
return type_clone
15661566

15671567
@final

0 commit comments

Comments
 (0)