fix 115列表异常处理

This commit is contained in:
jxxghp
2025-03-27 17:26:07 +08:00
parent 5e442433e5
commit 65c8116cc9

View File

@@ -350,8 +350,10 @@ class U115Pan(StorageBase, metaclass=Singleton):
"data",
params={"cid": cid, "limit": 1000, "offset": offset, "cur": True, "show_dir": 1}
)
if not resp:
if resp is None:
raise FileNotFoundError(f"【115】{fileitem.path} 检索出错!")
if not resp:
break
for item in resp:
# 更新缓存
path = f"{fileitem.path}{item['fn']}"