From c74104672a179fedd6856b7c123195a367241215 Mon Sep 17 00:00:00 2001 From: Ivan Yelizariev Date: Wed, 12 Feb 2020 07:30:46 +0000 Subject: [PATCH] :green_heart: mail_fix_553/mail_fix_553 --- mail_fix_553/mail_fix_553.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail_fix_553/mail_fix_553.py b/mail_fix_553/mail_fix_553.py index 6edc462..a265813 100644 --- a/mail_fix_553/mail_fix_553.py +++ b/mail_fix_553/mail_fix_553.py @@ -164,7 +164,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