def register_system(register_system):
    url = BH_URL + "/api/v1/system"
    headers = {'content-type': 'application/json'}
    try:
        response = requests.post(url,
                                 data=register_system.to_JSON(),
                                 headers=json_auth_headers())
        response.raise_for_status()
        return register_system.name

    except ConnectionError as error:
        print("Looks like there's a connection error. Please try again later")
    except __HOLE__ as error:
        if response.status_code == 409:
            print response.text
        else:
            print error
            print "Please try again..."
    return None
dataset/ETHPy150Open rcaloras/bashhub-client/bashhub/rest_client.py/register_system