Co-authored-by: 莫岳恒 <moyueheng@datagrand.com>tags/0.7.3
| # if bucket not exists, create it | # if bucket not exists, create it | ||||
| if e.response["Error"]["Code"] == "404": | if e.response["Error"]["Code"] == "404": | ||||
| self.client.create_bucket(Bucket=self.bucket_name) | self.client.create_bucket(Bucket=self.bucket_name) | ||||
| # if bucket is not accessible, pass, maybe the bucket is existing but not accessible | |||||
| elif e.response["Error"]["Code"] == "403": | |||||
| pass | |||||
| else: | else: | ||||
| # other error, raise exception | # other error, raise exception | ||||
| raise | raise |