1234567891011 |
- def push(self):
- self.seek(0)
- try:
- logger.info("uploading {} to s3://{}/{}".format(self.indexname,self.bucket,
- self.key))
- self.s3.upload_fileobj(self, self.bucket, self.key)
- except botocore.exceptions.ClientError as e:
- logger.error("ERROR: Failed to upload index: s3://{}/{}".format(self.bucket,
- self.key))
- logger.debug("Exception: %s", e, exc_info=True)
- sys.exit(4)
|