Skip to content

Macro Rendering Error#

File: system/autoware_processing_time_checker/README.md

KeyError: 'default'

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 32, 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 52, in extract_parameter_info
    param["Default"] = v["default"]
KeyError: 'default'