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(api): throw error when notion block can not find (#11433)
Trey Dong41d90c240828
diff --git a/api/libs/oauth_data_source.py b/api/libs/oauth_data_source.pyindex 48249e4a353..1d39abd8fa7 100644--- a/api/libs/oauth_data_source.py+++ b/api/libs/oauth_data_source.py@@ -253,6 +253,8 @@ class NotionOAuth(OAuthDataSource):}response = requests.get(url=f"{self._NOTION_BLOCK_SEARCH}/{block_id}", headers=headers)response_json = response.json()+ if response.status_code != 200:+ raise ValueError(f"Error fetching block parent page ID: {response_json.message}")parent = response_json["parent"]parent_type = parent["type"]if parent_type == "block_id":