From 858c078d5b277491c38cfe29c0620b9f18e7a940 Mon Sep 17 00:00:00 2001 From: NineKey Date: Tue, 30 Dec 2025 05:05:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E7=A9=BA=E5=85=A7=E5=AE=B9?= =?UTF-8?q?=E6=AA=A2=E6=9F=A5=E9=82=8F=E8=BC=AF=EF=BC=8C=E7=A2=BA=E4=BF=9D?= =?UTF-8?q?=E6=AD=A3=E7=A2=BA=E8=99=95=E7=90=86=E8=AE=80=E5=8F=96=E7=9A=84?= =?UTF-8?q?=E7=A9=BA=E6=AA=94=E6=A1=88=E5=85=A7=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- loader_node.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/loader_node.py b/loader_node.py index 5169401..e0d3398 100644 --- a/loader_node.py +++ b/loader_node.py @@ -167,7 +167,8 @@ class DynamicTagLoaderJS: for f_name in files_to_read: raw_content = self._read_file(os.path.join(folder_path, f_name)) - if raw_content: + + if raw_content is not None: cleaned_text, loras = self._parse_and_strip_lora(raw_content) current_group_data.append((cleaned_text, loras)) @@ -241,6 +242,6 @@ class DynamicTagLoaderJS: # 防止空列表導致 ComfyUI 報錯 if not final_prompts: - return ([], [], [], []) - + return ([], [], [], []) + return (final_models, final_clips, final_conditionings, final_prompts) \ No newline at end of file