We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d84a5ad commit abeb6c2Copy full SHA for abeb6c2
1 file changed
aredis/pool.py
@@ -411,7 +411,7 @@ def get_random_connection(self):
411
Open new connection to random redis server.
412
"""
413
if self._available_connections:
414
- node_name = random.choice(self._available_connections)
+ node_name = random.choice(list(self._available_connections.keys()))
415
conn_list = self._available_connections[node_name]
416
# check it in case of empty connection list
417
if conn_list:
0 commit comments