Skip to content

Commit dd8a4ad

Browse files
removed error handler
1 parent 99b6671 commit dd8a4ad

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

falkordb/falkordb.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,11 +245,8 @@ def get_replica_connections(self):
245245
ValueError: If the `mode` is neither Sentinel nor Cluster.
246246
"""
247247
# 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}")
252248

249+
mode = self.connection.execute_command("info")['redis_mode']
253250
if hasattr(self, 'sentinel') and self.sentinel is not None:
254251
replica_hostnames = self.sentinel.discover_slaves(service_name=self.service_name)
255252
return [(host, int(port)) for host, port in replica_hostnames]

0 commit comments

Comments
 (0)