mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Check if results are present in the pages or db response in Notion
This commit is contained in:
parent
8222615280
commit
376eaf64cd
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue