Handle missing email more gracefully (#2244)

This commit is contained in:
Chris Weaver 2024-08-27 13:29:25 -07:00 committed by GitHub
parent 525f3e01f5
commit 8614cd8934
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -744,7 +744,7 @@ class ConfluenceConnector(LoadConnector, PollConnector):
if attachment_content is None:
continue
creator_email = attachment["history"]["createdBy"]["email"]
creator_email = attachment["history"]["createdBy"].get("email")
comment = attachment["metadata"].get("comment", "")
doc_metadata: dict[str, str | list[str]] = {"comment": comment}