def get_logbook_by_name(logbook_name, conn):
    """
    Get a logbook by name from a persistence backend connection
    :param str logbook_name: The name of the logbook to get
    :param obj conn: A persistence backend connection
    :return obj logbook: The logbook with the specified name
    """
    return next(
        iter([i for i in conn.get_logbooks() if i.name == logbook_name])
    )