Skip to content

Macro Rendering Error

File: development/dashboard.md

TypeError: 'NoneType' object is not subscriptable

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/mkdocs_macros/plugin.py", line 527, 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 1301, in render
    self.environment.handle_exception()
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 22, in top-level template code
  File "/home/runner/work/containerssh.github.io/containerssh.github.io/main.py", line 574, 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 465, in get_repo_prs
    pr.author = prEntry["author"]["login"]
TypeError: 'NoneType' object is not subscriptable