mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-08 11:58:34 +02:00
Notion Child Block Fix (#2953)
This commit is contained in:
parent
2a6c032883
commit
07d76b2954
@ -134,9 +134,14 @@ class NotionConnector(LoadConnector, PollConnector):
|
||||
f"This is likely due to the block not being shared "
|
||||
f"with the Danswer integration. Exact exception:\n\n{e}"
|
||||
)
|
||||
return None
|
||||
logger.exception(f"Error fetching blocks - {res.json()}")
|
||||
raise e
|
||||
else:
|
||||
logger.exception(
|
||||
f"Error fetching blocks with status code {res.status_code}: {res.json()}"
|
||||
)
|
||||
|
||||
# This can occasionally happen, the reason is unknown and cannot be reproduced on our internal Notion
|
||||
# Assuming this will not be a critical loss of data
|
||||
return None
|
||||
return res.json()
|
||||
|
||||
@retry(tries=3, delay=1, backoff=2)
|
||||
|
Loading…
x
Reference in New Issue
Block a user