diff --git a/gajim/vcard.py b/gajim/vcard.py index abab96c6d2cabe855ee9f0176895325cbe1668fc..3e048d53c04db6f32a99c026a522a71323daa6f7 100644 --- a/gajim/vcard.py +++ b/gajim/vcard.py @@ -398,10 +398,13 @@ def fill_jabber_page(self): tt_text = _("There is no pending subscription request.") ask_label.set_tooltip_text(tt_text) - resources = '%s (%s)' % (self.contact.resource, str( - self.contact.priority)) - uf_resources = self.contact.resource + _(' resource with priority ')\ - + str(self.contact.priority) + resources = '' + uf_resources = '' + if self.contact.resource: + resources = '%s (%s)' % (self.contact.resource, str( + self.contact.priority)) + uf_resources = self.contact.resource + _(' resource with priority ')\ + + str(self.contact.priority) if not self.contact.status: self.contact.status = ''