Traceback (most recent call last):


 "/usr/lib/python2.7/logging/__init__.py", line 859, in emit

msg = self.format(record)


 "/usr/lib/python2.7/logging/__init__.py", line 732, in format

return fmt.format(record)


 "/usr/lib/python2.7/logging/__init__.py", line 471, in format

record.message = record.getMessage()


 "/usr/lib/python2.7/logging/__init__.py", line 335, in getMessage

msg = msg % self.args
TypeError: not all arguments converted during string formatting

Traceback (most recent call last):


 "/usr/lib/python3.8/site-packages/flask/app.py", line 1970, in finalize_request

response = self.process_response(response)


 "/usr/lib/python3.8/site-packages/flask/app.py", line 2267, in process_response

response = handler(response)


 "/usr/lib/python3.8/site-packages/flask_login/login_manager.py", line 399, in _update_remember_cookie

if '_remember' not in session and \


 "/usr/lib/python3.8/site-packages/werkzeug/local.py", line 379, in <lambda>

__contains__ = lambda x, i: i in x._get_current_object()
TypeError: argument of type 'NoneType' is not iterable
