'Returns bucket object representing S3 bucket'

def get_bucket(self, bucketname):

    try:
        return self.conn.get_bucket(bucketname)
    except boto.exception.S3ResponseError as e:
        if (e.error_code == 'NoSuchBucket'):
            raise exception.BucketDoesNotExist(bucketname)
        raise
