From 4d7df1e115d7c29d8a61144c67f983923398427e Mon Sep 17 00:00:00 2001 From: nullquant Date: Mon, 13 May 2024 20:42:46 +0300 Subject: [PATCH] removed exception form get_files_with_extension --- brushnet_nodes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/brushnet_nodes.py b/brushnet_nodes.py index fea8d59..869e02a 100644 --- a/brushnet_nodes.py +++ b/brushnet_nodes.py @@ -585,7 +585,8 @@ def get_files_with_extension(folder_name, extension=['safetensors']): if not os.path.isdir(inpaint_path): inpaint_path = os.path.join(folder_paths.base_path, inpaint_path) if not os.path.isdir(inpaint_path): - raise Exception("Can't find", folder_name, " path") + return ([], '') + #raise Exception("Can't find", folder_name, " path") abs_list = [] for x in os.walk(inpaint_path):