refactor: polling_observer

This commit is contained in:
wumode
2025-07-27 12:45:57 +08:00
parent 721648ffdf
commit 68c29d89c9
5 changed files with 69 additions and 47 deletions
@@ -31,6 +31,8 @@ class Alist(StorageBase, metaclass=WeakSingleton):
"move": "移动",
}
snapshot_check_folder_modtime = settings.OPENLIST_SNAPSHOT_CHECK_FOLDER_MODTIME
def __init__(self):
super().__init__()
@@ -586,6 +588,9 @@ class Alist(StorageBase, metaclass=WeakSingleton):
data=f,
)
if resp is None:
logger.warn(f"【OpenList】请求上传文件 {path} 失败")
return None
if resp.status_code != 200:
logger.warn(f"【OpenList】请求上传文件 {path} 失败,状态码:{resp.status_code}")
return None