From ecba68961d66a4e17691de5f50a700b75e277593 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger <asterix@lagaule.org> Date: Sat, 11 Oct 2008 13:10:53 +0000 Subject: [PATCH] fix dict.get() call. Fixes #4402 --- src/tooltips.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tooltips.py b/src/tooltips.py index d335c7f61c..13f371fb8b 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:') + ' <b>%s</b>' % mood if 'text' in contact.mood \ -- GitLab