ValueError: Invalid salt in flask

Solution
pw_hash = bcrypt.generate_password_hash(‘hunter2’).decode(‘utf-8’)