From d37939bc2a1a04970ca21a001866a3e30c0a9bc6 Mon Sep 17 00:00:00 2001 From: Martin Gross Date: Sun, 4 Aug 2019 17:25:02 +0200 Subject: [PATCH] Change BS-parser to lxml insted of html5lib, do prevent another dependency --- src/pretix/base/services/mail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/base/services/mail.py b/src/pretix/base/services/mail.py index 8664e7185..436286889 100644 --- a/src/pretix/base/services/mail.py +++ b/src/pretix/base/services/mail.py @@ -344,7 +344,7 @@ def render_mail(template, context): def replace_images_with_cid_paths(body_html): if body_html: - email = BeautifulSoup(body_html, "html5lib") + email = BeautifulSoup(body_html, "lxml") image_counter = 1 cid_images = [] for image in email.findAll('img'):