From cf8a603dac56b1cf3d93fcb015aebb60fdd26a5e Mon Sep 17 00:00:00 2001 From: David Arnold Date: Mon, 24 Jul 2023 05:56:27 -0500 Subject: [PATCH] build(deps): update premailer 3.8.0 -> 3.10.0 (#21783) --- frappe/email/email_body.py | 4 +++- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frappe/email/email_body.py b/frappe/email/email_body.py index 20f81cb89b..970f485687 100755 --- a/frappe/email/email_body.py +++ b/frappe/email/email_body.py @@ -405,7 +405,9 @@ def inline_style_in_html(html): css_files = [path.lstrip("/") for path in css_files] css_files = [css_file for css_file in css_files if os.path.exists(os.path.abspath(css_file))] - p = Premailer(html=html, external_styles=css_files, strip_important=False) + p = Premailer( + html=html, external_styles=css_files, strip_important=False, allow_loading_external_files=True + ) return p.transform() diff --git a/pyproject.toml b/pyproject.toml index b2b890c24c..5d06b69d33 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,7 +48,7 @@ dependencies = [ "passlib~=1.7.4", "pdfkit~=1.0.0", "phonenumbers==8.13.13", - "premailer~=3.8.0", + "premailer~=3.10.0", "psutil~=5.9.5", "psycopg2-binary~=2.9.1", "pyOpenSSL~=23.2.0",