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] 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"),