Skip to content

Macro Rendering Error

TemplateSyntaxError: expected token ',', got 'execute'

Traceback (most recent call last):
  File "/home/student/checkouts/py-quickstart/venv/lib/python3.6/site-packages/macros/plugin.py", line 261, in render
    md_template = self.env.from_string(markdown)
  File "/home/student/checkouts/py-quickstart/venv/lib/python3.6/site-packages/jinja2/environment.py", line 941, in from_string
    return cls.from_code(self, self.compile(source), globals, None)
  File "/home/student/checkouts/py-quickstart/venv/lib/python3.6/site-packages/jinja2/environment.py", line 638, in compile
    self.handle_exception(source=source_hint)
  File "/home/student/checkouts/py-quickstart/venv/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/home/student/checkouts/py-quickstart/venv/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "<unknown>", line 85, in template
jinja2.exceptions.TemplateSyntaxError: expected token ',', got 'execute'