Error !

SyntaxException: (SystemError) AST constructor recursion depth mismatch (before=150, after=149) ("if comicConfig['force_type'] == ftt:\n outpu") in file '/opt/mylar3/data/interfaces/default/comicdetails_update.html' at line: 361 char: 57

ftt_list = ['Select', 'TPB', 'HC', 'GN', 'Digital', 'One-Shot', 'Print'] %> %for ftt in ftt_list: <% if comicConfig['force_type'] == ftt: outputselect = 'selected' else: outputselect = '' %>
/usr/local/lib/python3.11/dist-packages/mako/pyparser.py, line 38:
raise exceptions.SyntaxException(
/usr/local/lib/python3.11/dist-packages/mako/ast.py, line 42:
expr = pyparser.parse(code.lstrip(), "exec", **exception_kwargs)
/usr/local/lib/python3.11/dist-packages/mako/parsetree.py, line 158:
self.code = ast.PythonCode(text, **self.exception_kwargs)
/usr/local/lib/python3.11/dist-packages/mako/lexer.py, line 129:
node = nodecls(*args, **kwargs)
/usr/local/lib/python3.11/dist-packages/mako/lexer.py, line 404:
self.append_node(
/usr/local/lib/python3.11/dist-packages/mako/lexer.py, line 248:
if self.match_python_block():
/usr/local/lib/python3.11/dist-packages/mako/template.py, line 652:
node = lexer.parse()
/usr/local/lib/python3.11/dist-packages/mako/template.py, line 672:
source, lexer = _compile(
/usr/local/lib/python3.11/dist-packages/mako/template.py, line 388:
code, module = _compile_text(self, data, filename)
/usr/local/lib/python3.11/dist-packages/mako/template.py, line 312:
module = self._compile_from_file(path, filename)
/usr/local/lib/python3.11/dist-packages/mako/lookup.py, line 312:
self._collection[uri] = template = Template(
/usr/local/lib/python3.11/dist-packages/mako/lookup.py, line 251:
return self._load(srcfile, uri)
/opt/mylar3/mylar/webserve.py, line 133:
template = _hplookup.get_template(templatename)