We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99b6671 commit dd8a4adCopy full SHA for dd8a4ad
falkordb/falkordb.py
@@ -245,11 +245,8 @@ def get_replica_connections(self):
245
ValueError: If the `mode` is neither Sentinel nor Cluster.
246
"""
247
# decide if it's Sentinel or cluster
248
- try:
249
- mode = self.connection.execute_command("info")['redis_mode']
250
- except Exception as e:
251
- raise Exception(f"Failed to get Redis mode: {e}")
252
+ mode = self.connection.execute_command("info")['redis_mode']
253
if hasattr(self, 'sentinel') and self.sentinel is not None:
254
replica_hostnames = self.sentinel.discover_slaves(service_name=self.service_name)
255
return [(host, int(port)) for host, port in replica_hostnames]
0 commit comments