From 1bffcbd947f91577dc6b2692f02f3c56c52be5b6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 24 Jan 2026 02:22:25 +0000 Subject: [PATCH 1/3] Initial plan 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 2/3] 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: From 548c1d2cab3f992c4c6a6137c62ad244a4c8b9c3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 24 Jan 2026 02:26:55 +0000 Subject: [PATCH 3/3] Add null check for schema access in IndexerModule Co-authored-by: jxxghp <51039935+jxxghp@users.noreply.github.com> --- app/modules/indexer/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/indexer/__init__.py b/app/modules/indexer/__init__.py index fb6e8a78..6698a3bc 100644 --- a/app/modules/indexer/__init__.py +++ b/app/modules/indexer/__init__.py @@ -434,7 +434,7 @@ class IndexerModule(_ModuleBase): 获取站点解析器 """ for site_schema in self._site_schemas: - if site_schema.schema.value == site.get("schema"): + if site_schema.schema and site_schema.schema.value == site.get("schema"): return site_schema( site_name=site.get("name"), url=site.get("url"),