def get_secondary_connections(network, user):
    """Get the 2nd level of connections of a given user.

    Keyword arguments:
    network -- a dictionary containing users' connections and games
    user -- the name of a person in the network
    """
    try:
        return list(set([secondary for primary in network[user]['friends']
                        for secondary in network[primary]['friends']]))
    except KeyError:
        return None