Merge branch 'master' into bucket-name-length-limit

This commit is contained in:
Steve Pulec 2018-12-28 21:04:10 -05:00 committed by GitHub
commit e681f55ba1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
58 changed files with 2794 additions and 277 deletions

View file

@ -179,7 +179,7 @@ class InvalidStorageClass(S3ClientError):
"The storage class you specified is not valid",
*args, **kwargs)
class InvalidBucketName(S3ClientError):
code = 400
@ -187,4 +187,13 @@ class InvalidBucketName(S3ClientError):
super(InvalidBucketName, self).__init__(
"InvalidBucketName",
"The specified bucket is not valid.",
class DuplicateTagKeys(S3ClientError):
code = 400
def __init__(self, *args, **kwargs):
super(DuplicateTagKeys, self).__init__(
"InvalidTag",
"Cannot provide multiple Tags with the same key",
*args, **kwargs)