From 8647a3e9d8370dc330eafdfd4a39fca12fbc7796 Mon Sep 17 00:00:00 2001 From: space-nuko <24979496+space-nuko@users.noreply.github.com> Date: Wed, 31 May 2023 18:34:22 -0500 Subject: [PATCH] Filter None values from file scan --- folder_paths.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/folder_paths.py b/folder_paths.py index f3d1b8773..15d70faa7 100644 --- a/folder_paths.py +++ b/folder_paths.py @@ -154,7 +154,8 @@ def get_filename_list_(folder_name): output_list.update(filter_files_extensions(files, folders[1])) output_folders = {**output_folders, **folders_all} - return (sorted(list(output_list)), output_folders) + result = [x for x in output_list if x is not None] + return (sorted(result), output_folders) def cached_filename_list_(folder_name): global filename_list_cache