From 376eaf64cd0a49334ae71fd00dae58f6afa6e212 Mon Sep 17 00:00:00 2001 From: sabaimran Date: Sun, 7 Apr 2024 14:50:38 +0530 Subject: [PATCH] Check if results are present in the pages or db response in Notion --- src/khoj/processor/content/notion/notion_to_entries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/khoj/processor/content/notion/notion_to_entries.py b/src/khoj/processor/content/notion/notion_to_entries.py index d8d40689..422e8325 100644 --- a/src/khoj/processor/content/notion/notion_to_entries.py +++ b/src/khoj/processor/content/notion/notion_to_entries.py @@ -100,7 +100,7 @@ class NotionToEntries(TextToEntries): for response in responses: with timer("Processing response", logger=logger): - pages_or_databases = response["results"] + pages_or_databases = response["results"] if response.get("results") else [] # Get all pages content for p_or_d in pages_or_databases: