diff options
Diffstat (limited to 'jfr_playoff')
-rw-r--r-- | jfr_playoff/gui/logframe.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/jfr_playoff/gui/logframe.py b/jfr_playoff/gui/logframe.py index 74ffca1..078226e 100644 --- a/jfr_playoff/gui/logframe.py +++ b/jfr_playoff/gui/logframe.py @@ -62,6 +62,8 @@ class LogWindow(tk.Toplevel): def addRecord(self, record): self._counter += 1 self._records.append((record, datetime.datetime.now())) + if not isinstance(record.message, unicode): + record.message = unicode(record.message, errors='replace') self.logList.insert( '', tk.END, tag=self._counter, values=[ record.levelname, record.name, record.message |