From c655da38c8543414f2306049beadee351d6d78ee Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Mon, 9 Jul 2018 20:33:10 +0100 Subject: [PATCH] [Console] Ensure time string is unicode --- deluge/ui/console/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deluge/ui/console/main.py b/deluge/ui/console/main.py index 23f4cac1e..34b7e5cf4 100644 --- a/deluge/ui/console/main.py +++ b/deluge/ui/console/main.py @@ -607,6 +607,8 @@ class EventLog(component.Component): if date_different: string = time.strftime(self.date_change_format) + if deluge.common.PY2: + string = string.decode() self.console.write_event(' ') self.console.write_event(string)