diff 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
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_chat.py	Tue Aug 02 23:21:13 2016 +0200
+++ b/frontends/src/quick_frontend/quick_chat.py	Mon Aug 08 00:48:22 2016 +0200
@@ -96,7 +96,8 @@
                 self.selected_lang = lang
                 return mess
             except StopIteration:
-                log.error(u"Can't find message for uid {}".format(self.mess_data.uid))
+                log.error(u"Can't find message for uid {}".format(self.uid))
+                return ''
 
     def getNick(self, entity):
         """Return nick of an entity when possible"""