Browse Source

🌈 pre-commit: redefined built-in

pull/270/head
Denis Mudarisov 5 years ago
parent
commit
b165d5f615
  1. 4
      mail_fix_553/mail_fix_553.py

4
mail_fix_553/mail_fix_553.py

@ -5,7 +5,7 @@ from email.utils import formataddr
from odoo import SUPERUSER_ID, tools from odoo import SUPERUSER_ID, tools
from odoo.osv import osv from odoo.osv import osv
from odoo.tools.safe_eval import safe_eval as eval
from odoo.tools.safe_eval import safe_eval
from odoo.tools.translate import _ from odoo.tools.translate import _
from odoo.addons.base.ir.ir_mail_server import MailDeliveryException from odoo.addons.base.ir.ir_mail_server import MailDeliveryException
@ -115,7 +115,7 @@ class MailMail(osv.Model):
) )
if mail.headers: if mail.headers:
try: try:
headers.update(eval(mail.headers))
headers.update(safe_eval(mail.headers))
except Exception: except Exception:
pass pass

Loading…
Cancel
Save