Skip to content
This repository was archived by the owner on Jan 9, 2024. It is now read-only.

Commit 3756bf1

Browse files
committed
Add logging of ReseponseError when doing the cluster initialization steps so the true error is visible in older python versions that do not merge and propegate the original exception automatically
1 parent 96f2172 commit 3756bf1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rediscluster/nodemanager.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ def initialize(self):
228228
except (ConnectionError, TimeoutError):
229229
continue
230230
except ResponseError as e:
231+
log.exception("ReseponseError sending 'cluster slots' to redis server")
232+
231233
# Isn't a cluster connection, so it won't parse these exceptions automatically
232234
message = e.__str__()
233235
if 'CLUSTERDOWN' in message or 'MASTERDOWN' in message:

0 commit comments

Comments
 (0)