Skip to content

extra_template_vars should be OK to return None #2005

Description

@simonw

Got this exception and had to make sure it always returned {}:

  File ".../python3.11/site-packages/datasette/app.py", line 1049, in render_template
    assert isinstance(extra_vars, dict), "extra_vars is of type {}".format(
AssertionError: extra_vars is of type <class 'NoneType'>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions