From 07888f9a49e48cc5287ffcb49d573d0d715ea34d Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 30 Dec 2005 11:40:42 +0000 Subject: [PATCH] gc contacts have no resource attribute --- src/tooltips.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tooltips.py b/src/tooltips.py index 4f651c229..b9c165ac5 100644 --- a/src/tooltips.py +++ b/src/tooltips.py @@ -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' + _('Resource: ') + \ '' + gtkgui_helpers.escape_for_pango_markup( contact.resource)