mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01:00
Handle case when properties field isn't present in the page
This commit is contained in:
parent
9b68062fa9
commit
d257629f81
1 changed files with 2 additions and 1 deletions
|
@ -223,7 +223,8 @@ class NotionToEntries(TextToEntries):
|
|||
except Exception as e:
|
||||
logger.error(f"Error getting page {page_id}: {e}", exc_info=True)
|
||||
return None, None
|
||||
properties = page["properties"]
|
||||
properties = page.get("properties", {})
|
||||
|
||||
title_field = "title"
|
||||
if "Title" in properties:
|
||||
title_field = "Title"
|
||||
|
|
Loading…
Reference in a new issue