From 7810e931f3a24cc73b7fe4e415685bdb334b0f1a Mon Sep 17 00:00:00 2001 From: 2pac Date: Fri, 12 Apr 2024 13:37:30 +0200 Subject: [PATCH] fix: Consider Hubspot ticket notes body --- backend/danswer/connectors/hubspot/connector.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/danswer/connectors/hubspot/connector.py b/backend/danswer/connectors/hubspot/connector.py index 861f53ee6..bd13c1e75 100644 --- a/backend/danswer/connectors/hubspot/connector.py +++ b/backend/danswer/connectors/hubspot/connector.py @@ -94,6 +94,8 @@ class HubSpotConnector(LoadConnector, PollConnector): note = api_client.crm.objects.notes.basic_api.get_by_id( note_id=note.id, properties=["content", "hs_body_preview"] ) + if note.properties["hs_body_preview"] is None: + continue associated_notes.append(note.properties["hs_body_preview"]) associated_emails_str = " ,".join(associated_emails)