fix dict.get() call. Fixes #4402

This commit is contained in:
Yann Leboulanger 2008-10-11 13:10:53 +00:00
parent 0afc57ad6d
commit ecba68961d
1 changed files with 2 additions and 1 deletions

View File

@ -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 \