

def get_key_value(self, text, key):
    try:
        return json.loads(text)[key]
    except KeyError:
        return ''
    except ValueError as e:
        raise ValueError(((e.message + '\n') + text))

dataset/ETHPy150Open prestodb/presto-admin/tests/product/test_connectors.py TestConnectors.get_key_value/original