Get parameter in Cozy configuration

def get_cozy_param(param):
    '''
        Get parameter in Cozy configuration
    '''
    try:
        req = curl_couchdb('/cozy/_design/cozyinstance/_view/all')
        rows = req.json()['rows']
        if len(rows) == 0:
            return None
        else:
            return rows[0].get('value', {}).get(param, None)
    except:
        return None