flask-scrypt
flask-scrypt copied to clipboard
generate_password_hash() throws a vague exception when salt=None
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!