Commit 064974b7 authored by Miro Hrončok's avatar Miro Hrončok

Handle UTF encoding better

parent ee386e00
......@@ -73,7 +73,11 @@ class Tee(object):
self.target(data)
except:
pass
self.stdout.write(data.encode("utf-8"))
try:
data = data.encode("utf-8")
except:
pass
self.stdout.write(data)
def flush(self):
self.stdout.flush()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment