There was an error while loading. Please reload this page.
1 parent 13be82d commit fe97bd1Copy full SHA for fe97bd1
pymongo/connection.py
@@ -554,7 +554,7 @@ def __try_node(self, node):
554
return self.__try_node(candidate)
555
556
# Explain why we aren't using this connection.
557
- raise AutoReconnect('%s:%d is currently a secondary' % node)
+ raise AutoReconnect('%s:%d is not primary or master' % node)
558
559
# Direct connection
560
if response.get("arbiterOnly", False):
0 commit comments