You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "D:\python\Lib\site-packages\flask\app.py", line 2091, in call
return self.wsgi_app(environ, start_response)
File "D:\python\Lib\site-packages\flask\app.py", line 2076, in wsgi_app
response = self.handle_exception(e)
File "D:\python\Lib\site-packages\flask\app.py", line 2073, in wsgi_app
response = self.full_dispatch_request()
File "D:\python\Lib\site-packages\flask\app.py", line 1518, in full_dispatch_request
rv = self.handle_user_exception(e)
File "D:\python\Lib\site-packages\flask\app.py", line 1516, in full_dispatch_request
rv = self.dispatch_request()
File "D:\python\Lib\site-packages\flask\app.py", line 1502, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "C:\Users\mineo\Desktop\flask\website\auth.py", line 19, in login
if check_password_hash(user.password, password):
File "D:\python\Lib\site-packages\werkzeug\security.py", line 219, in check_password_hash
return hmac.compare_digest(_hash_internal(method, salt, password)[0], hashval)
File "D:\python\Lib\site-packages\werkzeug\security.py", line 148, in _hash_internal
password = password.encode("utf-8")
AttributeError: 'NoneType' object has no attribute 'encode'
Error should be in this line:
user = User.query.filter_by(email=email).first()
if user:
if check_password_hash(user.password, password):
Traceback (most recent call last):
File "D:\python\Lib\site-packages\flask\app.py", line 2091, in call
return self.wsgi_app(environ, start_response)
File "D:\python\Lib\site-packages\flask\app.py", line 2076, in wsgi_app
response = self.handle_exception(e)
File "D:\python\Lib\site-packages\flask\app.py", line 2073, in wsgi_app
response = self.full_dispatch_request()
File "D:\python\Lib\site-packages\flask\app.py", line 1518, in full_dispatch_request
rv = self.handle_user_exception(e)
File "D:\python\Lib\site-packages\flask\app.py", line 1516, in full_dispatch_request
rv = self.dispatch_request()
File "D:\python\Lib\site-packages\flask\app.py", line 1502, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "C:\Users\mineo\Desktop\flask\website\auth.py", line 19, in login
if check_password_hash(user.password, password):
File "D:\python\Lib\site-packages\werkzeug\security.py", line 219, in check_password_hash
return hmac.compare_digest(_hash_internal(method, salt, password)[0], hashval)
File "D:\python\Lib\site-packages\werkzeug\security.py", line 148, in _hash_internal
password = password.encode("utf-8")
AttributeError: 'NoneType' object has no attribute 'encode'
Error should be in this line:
EDIT: Fixed by changing from
The text was updated successfully, but these errors were encountered: