

def is_2i_supported(self):
    try:
        e.client.get_index('foo', 'bar_bin', 'baz')
        return True
    except Exception as e:
        if ('indexes_not_supported' in str(e)):
            return False
        return True

dataset/ETHPy150Open basho/riak-python-client/riak/tests/test_2i.py TwoITests.is_2i_supported/VarMisuse@14/19 `self`->`e`