diff --git a/backend/danswer/connectors/notion/connector.py b/backend/danswer/connectors/notion/connector.py index d4de5eaeb..4680c3d04 100644 --- a/backend/danswer/connectors/notion/connector.py +++ b/backend/danswer/connectors/notion/connector.py @@ -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)