Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2008-10-11 17:10:53 +0400
committerYann Leboulanger <asterix@lagaule.org>2008-10-11 17:10:53 +0400
commitecba68961d66a4e17691de5f50a700b75e277593 (patch)
tree50c586824aed3b658dfd8d03f2af520250b00195 /src
parent0afc57ad6df7af78d9f6fdb6d50b06903cc7586f (diff)
fix dict.get() call. Fixes #4402
Diffstat (limited to 'src')
-rw-r--r--src/tooltips.py3
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 \