From 5a071bf3d1747f57a7847f158733958b70f18d30 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 24 Jan 2026 02:25:55 +0000 Subject: [PATCH] Add null check for schema.value access in FileManagerModule Co-authored-by: jxxghp <51039935+jxxghp@users.noreply.github.com> --- app/modules/filemanager/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/filemanager/__init__.py b/app/modules/filemanager/__init__.py index 4d3f7d77..01544c32 100644 --- a/app/modules/filemanager/__init__.py +++ b/app/modules/filemanager/__init__.py @@ -36,7 +36,7 @@ class FileManagerModule(_ModuleBase): self._storage_schemas = ModuleHelper.load('app.modules.filemanager.storages', filter_func=lambda _, obj: hasattr(obj, 'schema') and obj.schema) # 获取存储类型 - self._support_storages = [storage.schema.value for storage in self._storage_schemas] + self._support_storages = [storage.schema.value for storage in self._storage_schemas if storage.schema] @staticmethod def get_name() -> str: