From a441bae96f5e5e00481a6ad018bba133a6ce1da6 Mon Sep 17 00:00:00 2001 From: telamonian Date: Thu, 20 Jun 2024 17:05:55 -0400 Subject: [PATCH] fix `ignore` arg in `load_custom_node` signature --- nodes.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nodes.py b/nodes.py index 419fed43e..39858ae76 100644 --- a/nodes.py +++ b/nodes.py @@ -1885,8 +1885,7 @@ def _load_custom_node(ext_mod, ext_mod_name, ignore, ext_mod_dir=None): logging.warning(f"Skip loading custom nodes from {ext_mod_name}. No NODE_CLASS_MAPPINGS found in module.") return False -def load_custom_node(ext_mod_path, ignore): - ext_mod_name = os.path.basename(ext_mod_path) +def load_custom_node(ext_mod_path, ignore=set()): if os.path.isfile(ext_mod_path): ext_mod_name, *_ = os.path.splitext(ext_mod_path) ext_mod_name = NORMALIZE_MOD_NAME(ext_mod_name)