s3bundler_9.py 481 B

1234567891011
  1. def push(self):
  2. self.seek(0)
  3. try:
  4. logger.info("uploading {} to s3://{}/{}".format(self.indexname,self.bucket,
  5. self.key))
  6. self.s3.upload_fileobj(self, self.bucket, self.key)
  7. except botocore.exceptions.ClientError as e:
  8. logger.error("ERROR: Failed to upload index: s3://{}/{}".format(self.bucket,
  9. self.key))
  10. logger.debug("Exception: %s", e, exc_info=True)
  11. sys.exit(4)