mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-02 11:09:20 +02:00
Handle missing email more gracefully (#2244)
This commit is contained in:
parent
525f3e01f5
commit
8614cd8934
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user