comparison frontends/src/quick_frontend/quick_chat.py @ 2026:cdb2591d0b8b

quick frontend(chat): fixed traceback in log message
author Goffi <goffi@goffi.org>
date Mon, 08 Aug 2016 00:48:22 +0200
parents 01aff34e8873
children 62a99c214b57
comparison
equal deleted inserted replaced
2025:43516c915ca6 2026:cdb2591d0b8b
94 try: 94 try:
95 lang, mess = self.message.iteritems().next() 95 lang, mess = self.message.iteritems().next()
96 self.selected_lang = lang 96 self.selected_lang = lang
97 return mess 97 return mess
98 except StopIteration: 98 except StopIteration:
99 log.error(u"Can't find message for uid {}".format(self.mess_data.uid)) 99 log.error(u"Can't find message for uid {}".format(self.uid))
100 return ''
100 101
101 def getNick(self, entity): 102 def getNick(self, entity):
102 """Return nick of an entity when possible""" 103 """Return nick of an entity when possible"""
103 contact_list = self.host.contact_lists[self.profile] 104 contact_list = self.host.contact_lists[self.profile]
104 if self.type == C.MESS_TYPE_INFO and self.info_type in ROOM_USER_MOVED: 105 if self.type == C.MESS_TYPE_INFO and self.info_type in ROOM_USER_MOVED: