changeset 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 43516c915ca6
children 666b42c957b5
files frontends/src/quick_frontend/quick_chat.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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"""