I have created a small app to test the error is not with my deployment which suddenly stopped working. the result is the same.
2021-06-17 11:55:44,513: Exception on / [GET]
Traceback (most recent call last):
File "/home/austinsoft/.virtualenvs/myvirtualenv/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/home/austinsoft/.virtualenvs/myvirtualenv/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/austinsoft/.virtualenvs/myvirtualenv/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/austinsoft/.virtualenvs/myvirtualenv/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/home/austinsoft/.virtualenvs/myvirtualenv/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/home/austinsoft/.virtualenvs/myvirtualenv/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/austinsoft/mysite/anglersdb.py", line 7, in homepage
return render_template("index.html", result={"title": "test0"})
File "/home/austinsoft/.virtualenvs/myvirtualenv/lib/python3.6/site-packages/flask/templating.py", line 134, in render_template
return _render(ctx.app.jinja_env.get_or_select_template(template_name_or_list),
File "/home/austinsoft/.virtualenvs/myvirtualenv/lib/python3.6/site-packages/jinja2/environment.py", line 1068, in get_or_select_template
return self.get_template(template_name_or_list, parent, globals)
File "/home/austinsoft/.virtualenvs/myvirtualenv/lib/python3.6/site-packages/jinja2/environment.py", line 997, in get_template
return self._load_template(name, globals)
File "/home/austinsoft/.virtualenvs/myvirtualenv/lib/python3.6/site-packages/jinja2/environment.py", line 958, in _load_template
template = self.loader.load(self, name, self.make_globals(globals))
File "/home/austinsoft/.virtualenvs/myvirtualenv/lib/python3.6/site-packages/jinja2/loaders.py", line 137, in load
code = environment.compile(source, name, filename)
File "/home/austinsoft/.virtualenvs/myvirtualenv/lib/python3.6/site-packages/jinja2/environment.py", line 749, in compile
source = self._parse(source, name, filename)
File "/home/austinsoft/.virtualenvs/myvirtualenv/lib/python3.6/site-packages/jinja2/environment.py", line 606, in _parse
return Parser(self, source, name, filename).parse()
File "/home/austinsoft/.virtualenvs/myvirtualenv/lib/python3.6/site-packages/jinja2/parser.py", line 1038, in parse
result = nodes.Template(self.subparse(), lineno=1)
File "/home/austinsoft/.virtualenvs/myvirtualenv/lib/python3.6/site-packages/jinja2/parser.py", line 1012, in subparse
add_data(self.parse_tuple(with_condexpr=True))
File "/home/austinsoft/.virtualenvs/myvirtualenv/lib/python3.6/site-packages/jinja2/parser.py", line 725, in parse_tuple
args.append(parse())
File "/home/austinsoft/.virtualenvs/myvirtualenv/lib/python3.6/site-packages/jinja2/parser.py", line 523, in parse_expression
return self.parse_condexpr()
File "/home/austinsoft/.virtualenvs/myvirtualenv/lib/python3.6/site-packages/jinja2/parser.py", line 528, in parse_condexpr
expr1 = self.parse_or()
File "/home/austinsoft/.virtualenvs/myvirtualenv/lib/python3.6/site-packages/jinja2/parser.py", line 543, in parse_or
left = self.parse_and()
File "/home/austinsoft/.virtualenvs/myvirtualenv/lib/python3.6/site-packages/jinja2/parser.py", line 552, in parse_and
left = self.parse_not()
File "/home/austinsoft/.virtualenvs/myvirtualenv/lib/python3.6/site-packages/jinja2/parser.py", line 560, in parse_not
if self.stream.current.test("name:not"):
AttributeError: 'Token' object has no attribute 'test'
[edit by admin: formatting]