social/mail_inline_css/models
Guewen Baconnier 9309136848 Fix issue on empty template with premailer
If premailer receives an empty value, such as an empty string,
on parsing, it returns None and fails when trying to call
'etree.fromstring()' on this None result.

We should avoid to call premailer on an empty string, as the result
will anyway not change.

We may have an empty template for instance when a template could not
compile due to a mistake.
2020-08-27 15:17:51 +02:00
..
__init__.py [IMP] mail_inline_css: Improve and add test cov 2020-01-17 15:10:43 +01:00
mail_template.py Fix issue on empty template with premailer 2020-08-27 15:17:51 +02:00