flask-scrypt icon indicating copy to clipboard operation
flask-scrypt copied to clipboard

generate_password_hash() throws a vague exception when salt=None

Open leto opened this issue 10 years ago • 0 comments

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!

leto avatar Apr 27 '15 21:04 leto