From bae2068111eac5290510ce29d6a0870908460953 Mon Sep 17 00:00:00 2001 From: doctorpangloss <@hiddenswitch.com> Date: Wed, 28 Feb 2024 17:46:23 -0800 Subject: [PATCH] Fix issue when custom_nodes directory does not exist --- comfy/nodes/vanilla_node_importing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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__")