MCPcopy
hub / github.com/redis/redis-py / raise_connection_error

Method raise_connection_error

tests/test_cluster.py:4057–4059  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4055 node = r.get_node_from_key(key, False)
4056
4057 def raise_connection_error():
4058 e = ConnectionError("error")
4059 return e
4060
4061 with r.pipeline() as pipe:
4062 mock_node_resp_func(node, raise_connection_error)

Callers

nothing calls this directly

Calls 1

ConnectionErrorClass · 0.90

Tested by

no test coverage detected