mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-08 03:48:14 +02:00
Fix specifying folders for Google Drive connector
This commit is contained in:
parent
1a22666810
commit
9e6467a0c9
@ -192,10 +192,9 @@ class GoogleDriveConnector(LoadConnector, PollConnector):
|
||||
found_parent_id = get_folder_id(
|
||||
service=service, parent_id=parent_id, folder_name=folder_name
|
||||
)
|
||||
if parent_id is None:
|
||||
raise ValueError(
|
||||
f"Folder '{folder_name}' in path '{path}' not found in Google Drive"
|
||||
)
|
||||
if found_parent_id is None:
|
||||
raise ValueError(f"Folder path '{path}' not found in Google Drive")
|
||||
parent_id = found_parent_id
|
||||
folder_ids.append(parent_id)
|
||||
|
||||
return folder_ids
|
||||
|
Loading…
x
Reference in New Issue
Block a user