Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: notion extractor raise 'NoneType' object has no attribute 'curre… (#2608)
takatosta4d86496e1f2
diff --git a/api/core/rag/extractor/notion_extractor.py b/api/core/rag/extractor/notion_extractor.pyindex 38dd36361a4..c40064fd1d8 100644--- a/api/core/rag/extractor/notion_extractor.py+++ b/api/core/rag/extractor/notion_extractor.py@@ -4,7 +4,6 @@ from typing import Any, Optionalimport requestsfrom flask import current_app-from flask_login import current_userfrom core.rag.extractor.extractor_base import BaseExtractorfrom core.rag.models.document import Document@@ -43,7 +42,7 @@ class NotionExtractor(BaseExtractor):if notion_access_token:self._notion_access_token = notion_access_tokenelse:- self._notion_access_token = self._get_access_token(current_user.current_tenant_id,+ self._notion_access_token = self._get_access_token(tenant_id,self._notion_workspace_id)if not self._notion_access_token:integration_token = current_app.config.get('NOTION_INTEGRATION_TOKEN')