mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-08 11:58:34 +02:00
Gracefully handle missing call parties for Gong connector
This commit is contained in:
parent
cc9cb202cd
commit
ba872a0f7f
@ -198,7 +198,10 @@ class GongConnector(LoadConnector, PollConnector):
|
||||
f"Indexing Gong call from {call_time_str.split('T', 1)[0]}: {call_title}"
|
||||
)
|
||||
|
||||
call_parties = call_details["parties"]
|
||||
call_parties = cast(list[dict] | None, call_details.get("parties"))
|
||||
if call_parties is None:
|
||||
logger.error(f"Couldn't get parties for Call ID: {call_id}")
|
||||
call_parties = []
|
||||
|
||||
id_to_name_map = self._parse_parties(call_parties)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user