mirror of https://github.com/OCA/social.git
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. |
||
---|---|---|
.. | ||
__init__.py | ||
mail_template.py |