diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2008-10-11 17:10:53 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2008-10-11 17:10:53 +0400 |
commit | ecba68961d66a4e17691de5f50a700b75e277593 (patch) | |
tree | 50c586824aed3b658dfd8d03f2af520250b00195 /src | |
parent | 0afc57ad6df7af78d9f6fdb6d50b06903cc7586f (diff) |
fix dict.get() call. Fixes #4402
Diffstat (limited to 'src')
-rw-r--r-- | src/tooltips.py | 3 |
1 files changed, 2 insertions, 1 deletions
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:') + ' <b>%s</b>' % mood if 'text' in contact.mood \ |