Fix S3DirectoryLoader exception (#10193)

#9304 introduced a critical bug. The S3DirectoryLoader fails completely
because boto3 checks the naming of kw arguments and one of the args is
badly named (very sorry for that)

cc @baskaryan
This commit is contained in:
Christophe Bornet 2023-09-05 00:59:22 +02:00 committed by GitHub
parent dde1992fdd
commit f389c4fcab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,7 +114,7 @@ class S3DirectoryLoader(BaseLoader):
aws_access_key_id=self.aws_access_key_id,
aws_secret_access_key=self.aws_secret_access_key,
aws_session_token=self.aws_session_token,
boto_config=self.boto_config,
config=self.boto_config,
)
bucket = s3.Bucket(self.bucket)
docs = []