Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cluster: don't leak IndexError in
NodesManager.initialize
If the cluster has just been started, `CLUSTER SLOTS` returns an empty array. `NodesManager.initialize` did not take this into account and took the first element unconditionally causing `IndexError`. This commit makes it raise `ValkeyClusterException` with a clear error message instead. Signed-off-by: Mikhail Koviazin <[email protected]>
- Loading branch information