Browse Source

💚 mail_fix_553/mail_fix_553

pull/260/head
Ivan Yelizariev 5 years ago
parent
commit
0332f3de2e
No known key found for this signature in database GPG Key ID: 93F14FB6A8B57057
  1. 2
      mail_fix_553/mail_fix_553.py

2
mail_fix_553/mail_fix_553.py

@ -160,7 +160,7 @@ class MailMail(osv.Model):
context=context, context=context,
) )
except AssertionError as error: except AssertionError as error:
if error.message == ir_mail_server.NO_VALID_RECIPIENT:
if str(error) == ir_mail_server.NO_VALID_RECIPIENT:
# No valid recipient found for this particular # No valid recipient found for this particular
# mail item -> ignore error to avoid blocking # mail item -> ignore error to avoid blocking
# delivery to next recipients, if any. If this is # delivery to next recipients, if any. If this is

Loading…
Cancel
Save