[FIX] base: fix logger message
Simple typo; instead of a logger message, an exception is output in the logs. closes odoo/odoo#36686 X-original-commit: 83030b6ae20bc9d32b2c7a83ea5a1dca33e5f9cf Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
This commit is contained in:
@@ -126,7 +126,7 @@ def encode_rfc2822_address_header(header_text):
|
||||
return formataddr((name, email))
|
||||
except UnicodeEncodeError:
|
||||
_logger.warning(_('Failed to encode the address %s\n'
|
||||
'from mail header:\n%s') % addr, header_text)
|
||||
'from mail header:\n%s') % (addr, header_text))
|
||||
return ""
|
||||
|
||||
addresses = getaddresses([pycompat.to_text(ustr(header_text))])
|
||||
|
||||
Reference in New Issue
Block a user