Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions pymysql/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -920,10 +920,7 @@ def _request_authentication(self):
):
auth_packet = self._process_auth(plugin_name, auth_packet)
else:
# send legacy handshake
data = _auth.scramble_old_password(self.password, self.salt) + b"\0"
self.write_packet(data)
auth_packet = self._read_packet()
raise err.OperationalError("received unknown auth swich request")
elif auth_packet.is_extra_auth_data():
if DEBUG:
print("received extra data")
Expand Down