From ecba68961d66a4e17691de5f50a700b75e277593 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 11 Oct 2008 13:10:53 +0000 Subject: fix dict.get() call. Fixes #4402 --- src/tooltips.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/tooltips.py b/src/tooltips.py index d335c7f61..13f371fb8 100644 --- a/src/tooltips.py +++ b/src/tooltips.py @@ -581,7 +581,8 @@ class RosterTooltip(NotificationAreaTooltip): to the given property list. ''' if 'mood' in contact.mood: - mood = MOODS.get(mood, contact.mood['mood'].strip()) + mood = contact.mood['mood'].strip() + mood = MOODS.get(mood, mood) mood = gobject.markup_escape_text(mood) mood_string = _('Mood:') + ' %s' % mood if 'text' in contact.mood \ -- cgit v1.2.3