Skip to content

Commit

Permalink
Fix calling undefined function
Browse files Browse the repository at this point in the history
Fixes #981.
  • Loading branch information
methane committed Aug 28, 2021
1 parent eba874b commit 2f6c3d0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pymysql/connections.py
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

0 comments on commit 2f6c3d0

Please sign in to comment.