diff --git a/comfy/nodes/vanilla_node_importing.py b/comfy/nodes/vanilla_node_importing.py index b50f977ca..94be1679e 100644 --- a/comfy/nodes/vanilla_node_importing.py +++ b/comfy/nodes/vanilla_node_importing.py @@ -60,7 +60,7 @@ def _vanilla_load_custom_nodes_2() -> ExportedNodes: exported_nodes = ExportedNodes() for custom_node_path in node_paths: if not os.path.exists(custom_node_path) or not os.path.isdir(custom_node_path): - pass + continue possible_modules = os.listdir(os.path.realpath(custom_node_path)) if "__pycache__" in possible_modules: possible_modules.remove("__pycache__")