8000 Fix calling undefined function (#1003) · githubhuiyuan/PyMySQL@33d165d · GitHub
[go: up one dir, main page]

Skip to content

Commit 33d165d

Browse files
authored
Fix calling undefined function (PyMySQL#1003)
Fixes PyMySQL#981.
1 parent eba874b commit 33d165d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pymysql/connections.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -920,10 +920,7 @@ def _request_authentication(self):
920920
):
921921
auth_packet = self._process_auth(plugin_name, auth_packet)
922922
else:
923-
# send legacy handshake
924-
data = _auth.scramble_old_password(self.password, self.salt) + b"\0"
925-
self.write_packet(data)
926-
auth_packet = self._read_packet()
923+
raise err.OperationalError("received unknown auth swich request")
927924
elif auth_packet.is_extra_auth_data():
928925
if DEBUG:
929926
print("received extra data")

0 commit comments

Comments
 (0)
0