Ping CozyDB with existing credentials

def ping():
    '''
        Ping CozyDB with existing credentials
    '''
    try:
        curl_couchdb('/cozy/')
        ping = True
    except requests.exceptions.ConnectionError, error:
        print error
        ping = False
    return ping