Skip to content

module 'jinja2' has no attribute escape #4

@ryascott

Description

@ryascott

datasette==0.63
jinja2==3.1.2

After installing the datasette-render-binary plugin I received the following error when trying to view a table with binary data:

image

The code that generated the error is below:

html.append(jinja2.escape(chunk.replace("\\\\", "\\")))

I believe the change for escape occurred in the 3.10 release of Jinja2

Jinja2 3.1.0 Changes

image

Thanks
Ryan Scott

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions