def check_banned_networks(networks, banned_networks):
    """Verifies banned networks are not present."""
    if banned_networks:
        msg = 'Networks (%s) not allowed'
        msg_networks = ','.join(banned_networks)
        if banned_networks.intersection(networks) != set():
            return msg % msg_networks
    return ''
