def check_unknown_attachment_in_space(confluence, space_key):
    """
    Detect errors in space
    :param confluence:
    :param space_key:
    :return:
    """
    page_ids = get_all_pages_ids(confluence, space_key)
    print("Start review pages {} in {}".format(len(page_ids), space_key))
    for page_id in page_ids:
        link = confluence.has_unknown_attachment_error(page_id)
        if len(link) > 0:
            print(link)
Detect errors in space
    :param confluence:
    :param space_key:
    :return: