Skip to content

Commit

Permalink
To avoid AttributeError in function _request_authentication(self)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttlttl committed Sep 3, 2016
1 parent 0aa221e commit 21025e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aiomysql/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,9 @@ def _get_server_information(self):
i += salt_len

i += 1

self._auth_plugin_name = ''

# AUTH PLUGIN NAME may appear here.
if self.server_capabilities & CLIENT.PLUGIN_AUTH and len(data) >= i:
# Due to Bug#59453 the auth-plugin-name is missing the terminating
Expand Down

0 comments on commit 21025e0

Please sign in to comment.