Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Connection' object has no attribute 'password' #105

Closed
BurnellLiu opened this issue Sep 6, 2016 · 3 comments
Closed

'Connection' object has no attribute 'password' #105

BurnellLiu opened this issue Sep 6, 2016 · 3 comments

Comments

@BurnellLiu
Copy link

aiomysql version: 0.0.8
os version: win10

When i use this functinon:
__pool = await aiomysql.create_pool( host=kw.get('host', 'localhost'), port=kw.get('port', 3306), user=kw['user'], password=kw['password'], db=kw['db'], charset=kw.get('charset', 'utf8'), autocommit=kw.get('autocommit', True), maxsize=kw.get('maxsize', 10), minsize=kw.get('minsize', 1), loop=loop )

I found a error:
File "C:\Program Files (x86)\Python35-32\lib\site-packages\aiomysql\connection.py", line 699, in _request_authentication
data = _scramble_323(self.password.encode('latin1'),
AttributeError: 'Connection' object has no attribute 'password'

I think it shoud be:
data = _scramble_323(self._password.encode('latin1'),

Thanks

@jettify
Copy link
Member

jettify commented Sep 6, 2016

Good catch! Wold you like to submit PR?

@BurnellLiu
Copy link
Author

I am sorry

@jettify
Copy link
Member

jettify commented Sep 8, 2016

fixed in eae25fd

@jettify jettify closed this as completed Sep 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants