Skip to content

Macro Rendering Error#

File: perception/autoware_multi_object_tracker/README.md

KeyError: 'description'

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/mkdocs_macros/plugin.py", line 688, in render
    return md_template.render(**page_variables)
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/jinja2/environment.py", line 1304, in render
    self.environment.handle_exception()
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/jinja2/environment.py", line 939, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 72, in top-level template code
  File "/home/runner/work/autoware.universe/autoware.universe/mkdocs_macros.py", line 72, in json_to_markdown
    return format_json(data)
  File "/home/runner/work/autoware.universe/autoware.universe/mkdocs_macros.py", line 63, in format_json
    markdown_table = tabulate(extract_parameter_info(parameters), headers="keys", tablefmt="github")
  File "/home/runner/work/autoware.universe/autoware.universe/mkdocs_macros.py", line 56, in extract_parameter_info
    params.extend(extract_parameter_info(v["properties"], k + "."))
  File "/home/runner/work/autoware.universe/autoware.universe/mkdocs_macros.py", line 51, in extract_parameter_info
    param["Description"] = v["description"]
KeyError: 'description'