Skip to content

Commit e24742f

Browse files
committed
fix: 修复 alist 存储
1 parent f0d7864 commit e24742f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/storages/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def empty():
331331
logger.terror("storage.error.alist", status=result.code, message=result.message)
332332
else:
333333
self.cache.set(f"listfile_{root}", result, 30)
334-
for r in result.data["content"] or []:
334+
for r in ((result.data or []).get("content", None) or []):
335335
file = File(
336336
r["name"],
337337
r["size"],

0 commit comments

Comments
 (0)