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

generate_password_hash() throws a vague exception when salt=None #9

Open
leto opened this issue Apr 27, 2015 · 0 comments
Open

generate_password_hash() throws a vague exception when salt=None #9

leto opened this issue Apr 27, 2015 · 0 comments

Comments

@leto
Copy link

leto commented Apr 27, 2015

This happens when salt=None

Exception: AttributeError: 'NoneType' object has no attribute 'encode'

An exception explaining that a salt is required seems like a more useful error message.

Also, thanks for writing flask-scrypt. It rocks!

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

1 participant