From b37aea40a7fd092d17b593397acebd94e7b1186c Mon Sep 17 00:00:00 2001 From: blitzmann Date: Sun, 15 Nov 2015 17:15:39 -0500 Subject: [PATCH] fix exception when setting a unicode fit as booster (should hopefully fix all timer-related unicode errors) --- utils/timer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/timer.py b/utils/timer.py index e852d8603..c1ca87a8b 100644 --- a/utils/timer.py +++ b/utils/timer.py @@ -18,7 +18,7 @@ class Timer(): def checkpoint(self, name=''): text = u'Timer - {timer} - {checkpoint} - {last:.2f}ms ({elapsed:.2f}ms elapsed)'.format( timer=self.name, - checkpoint=name, + checkpoint=unicode(name, "utf-8"), last=self.last, elapsed=self.elapsed ).strip()