fix exception when setting a unicode fit as booster (should hopefully fix all timer-related unicode errors)

This commit is contained in:
blitzmann
2015-11-15 17:15:39 -05:00
parent f95e864119
commit b37aea40a7

View File

@@ -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()