def _s3_client_call(self, method_name, *args, **kwargs):
"""
Creates a boto3 S3 ``Client`` object and runs ``method_name``.
"""
s3_client = _get_s3_client()
method = getattr(s3_client, method_name)
try:
return method(*args, **kwargs)
except botocore_exceptions.ClientError as e:
six.raise_from(_parse_s3_error(e, **kwargs), e)
评论列表
文章目录