mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-09 14:39:40 +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(
|
found_parent_id = get_folder_id(
|
||||||
service=service, parent_id=parent_id, folder_name=folder_name
|
service=service, parent_id=parent_id, folder_name=folder_name
|
||||||
)
|
)
|
||||||
if parent_id is None:
|
if found_parent_id is None:
|
||||||
raise ValueError(
|
raise ValueError(f"Folder path '{path}' not found in Google Drive")
|
||||||
f"Folder '{folder_name}' in path '{path}' not found in Google Drive"
|
parent_id = found_parent_id
|
||||||
)
|
|
||||||
folder_ids.append(parent_id)
|
folder_ids.append(parent_id)
|
||||||
|
|
||||||
return folder_ids
|
return folder_ids
|
||||||
|
Loading…
x
Reference in New Issue
Block a user