Skip to content

Commit daaf8c7

Browse files
committed
Fix auth command issue.
1 parent 51a76a4 commit daaf8c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymongo/replica_set_connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ def __auth(self, sock_info, dbname, user, passwd):
648648
"""Authenticate socket against database `dbname`.
649649
"""
650650
# Get a nonce
651-
response = self.__simple_command(sock_info, dbname, {'getnonce': 1})
651+
response, _ = self.__simple_command(sock_info, dbname, {'getnonce': 1})
652652
nonce = response['nonce']
653653
key = helpers._auth_key(nonce, user, passwd)
654654

0 commit comments

Comments
 (0)