diff --git a/addons/mail/models/mail_channel.py b/addons/mail/models/mail_channel.py index fb33fbf1323..8be0884b346 100644 --- a/addons/mail/models/mail_channel.py +++ b/addons/mail/models/mail_channel.py @@ -648,7 +648,7 @@ class Channel(models.Model): msg += _(" This channel is private. People must be invited to join it.") else: channel_partners = self.env['mail.channel.partner'].search([('partner_id', '!=', partner.id), ('channel_id', '=', self.id)]) - msg = _("You are in a private conversation with @%s.") % channel_partners[0].partner_id.name + msg = _("You are in a private conversation with @%s.") % (channel_partners[0].partner_id.name if channel_partners else _('Anonymous')) msg += _("""

You can mention someone by typing @username, this will grab its attention.
You can mention a channel by typing #channel.