Skip to content

[Alerta-Mailer] Integration failed with Jinja2 Autoescape extension deprecation #393

Open
@mirzacodes

Description

@mirzacodes

Issue Summary
I am working with Alerta Mailer Integration, however, I have recently faced an issue. The alerta-mailer integration is failing with deprecation of jinja2 extension autoescape. I am attaching screenshot below from the logs.

image

Below link also shows documentation of this issue. This extension has been removed from the jinja2 version 3.0.0+ and it is built-on now.

Proposed fix
This issue can be fixed by removing the 'autoescape' extension from the code line.

extensions=['jinja2.ext.autoescape'],

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions