import logging


def get_object_contents(client, bucket, key):
    """Read the specified file from the object store and return its contents.

    Parameters:
        client: str, the boto3 client object
        bucket: str, target bucket location
        key: str, target filename with prefix

    Returns:
        Contents of the specified object in case object is read successfully.
        False in case the object is not found or could not be read.
    """
    try:
        body = client.get_object(Bucket=bucket, Key=key)[
                            "Body"
                        ].read()
        return body
    except Exception as e:
        logging.error(f"Unknown exception - {e}")
        return False