diff --git a/mail_fix_553/mail_fix_553.py b/mail_fix_553/mail_fix_553.py index 89e1f38..665149c 100644 --- a/mail_fix_553/mail_fix_553.py +++ b/mail_fix_553/mail_fix_553.py @@ -160,7 +160,7 @@ class MailMail(osv.Model): context=context, ) 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 # mail item -> ignore error to avoid blocking # delivery to next recipients, if any. If this is