Compare commits

...

2 Commits

Author SHA1 Message Date
VitoChenLY
d0fc40cf3a
Merge 840e1d2fc9 into 3fe9f5fecb 2026-07-04 14:10:53 +08:00
chenyijian
840e1d2fc9 fix err when directories can not access 2026-01-22 10:59:14 +08:00

View File

@ -473,7 +473,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]