Ignore folder path directories that don't exist.

This commit is contained in:
comfyanonymous 2023-06-02 16:48:56 -04:00
parent 871a86593a
commit 66e588d837
1 changed files with 3 additions and 2 deletions

View File

@ -173,8 +173,9 @@ def cached_filename_list_(folder_name):
folders = folder_names_and_paths[folder_name] folders = folder_names_and_paths[folder_name]
for x in folders[0]: for x in folders[0]:
if x not in out[1]: if os.path.isdir(x):
return None if x not in out[1]:
return None
return out return out