From 69c3f9eb5d2c2abff36f02c7fb16d29a535e3f6b Mon Sep 17 00:00:00 2001 From: jxxghp Date: Wed, 18 Sep 2024 08:28:54 +0800 Subject: [PATCH] fix bug --- app/modules/filemanager/storages/u115.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/modules/filemanager/storages/u115.py b/app/modules/filemanager/storages/u115.py index ed88399a..73a2d6dc 100644 --- a/app/modules/filemanager/storages/u115.py +++ b/app/modules/filemanager/storages/u115.py @@ -174,10 +174,10 @@ class U115Pan(StorageBase, metaclass=Singleton): extension=Path(item.name).suffix[1:], modify_time=item.modified_time.timestamp() if item.modified_time else 0, pickcode=item.pickcode - ) for item in items] + ) for item in items if item] except Exception as e: logger.error(f"115浏览文件失败:{str(e)}") - return None + return [] def create_folder(self, fileitem: schemas.FileItem, name: str) -> Optional[schemas.FileItem]: """