mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-03-30 05:23:37 +08:00
fix err when directories can not access
This commit is contained in:
parent
abe2ec26a6
commit
840e1d2fc9
@ -404,7 +404,11 @@ def cached_filename_list_(folder_name: str) -> tuple[list[str], dict[str, float]
|
||||
for x in out[1]:
|
||||
time_modified = out[1][x]
|
||||
folder = x
|
||||
if os.path.getmtime(folder) != time_modified:
|
||||
try:
|
||||
if os.path.getmtime(folder) != time_modified:
|
||||
return None
|
||||
except Exception as e:
|
||||
logging.warning(f"Warning: Unable to access {folder}. Error: {e}. Skipping this folder.")
|
||||
return None
|
||||
|
||||
folders = folder_names_and_paths[folder_name]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user