Skip to content

Macro Rendering Error

TypeError: 'NoneType' object is not subscriptable

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/mkdocs_macros/plugin.py", line 449, in render
    return md_template.render(**page_variables)
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/jinja2/environment.py", line 1291, in render
    self.environment.handle_exception()
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/jinja2/environment.py", line 925, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 24, in top-level template code
  File "/home/runner/work/containerssh.github.io/containerssh.github.io/main.py", line 607, in github_prs
    for pr in gh_client.get_repo_prs(repo.name):
  File "/home/runner/work/containerssh.github.io/containerssh.github.io/main.py", line 507, in get_repo_prs
    pr.checks_status = prEntry["commits"]["nodes"][0]["commit"]["statusCheckRollup"]["state"]
TypeError: 'NoneType' object is not subscriptable