Skip to content

Commit c8ed67a

Browse files
authored
Merge pull request #65 from teynar/fix/missing-photoLink-field
Fix missing photoLink field in Google Drive source indexing
2 parents 7a63c54 + 8dcce0a commit c8ed67a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/data_sources/google_drive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def _index_files_from_drive(self, drive) -> List[dict]:
181181
title=file['name'],
182182
content=content,
183183
author=file['lastModifyingUser']['displayName'],
184-
author_image_url=file['lastModifyingUser']['photoLink'],
184+
author_image_url=file['lastModifyingUser'].get('photoLink'),
185185
location=parent_name,
186186
url=file['webViewLink'],
187187
timestamp=last_modified,

0 commit comments

Comments
 (0)