Add null check for schema access in IndexerModule

Co-authored-by: jxxghp <51039935+jxxghp@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-24 02:26:55 +00:00
parent 5a071bf3d1
commit 548c1d2cab

View File

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