gc contacts have no resource attribute

This commit is contained in:
Yann Leboulanger 2005-12-30 11:40:42 +00:00
parent 8614b3cad0
commit 07888f9a49
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,7 @@ class GCTooltip(BaseTooltip):
# escape markup entities
info += ' - ' + gtkgui_helpers.escape_for_pango_markup(status)
if contact.resource.strip() != '':
if hasattr(contact, 'resource') and contact.resource.strip() != '':
info += '\n<span weight="bold">' + _('Resource: ') + \
'</span>' + gtkgui_helpers.escape_for_pango_markup(
contact.resource)