"...git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "60d259add1113a98a856f58936f1689ac4717c26"
Commit e0995a67 authored by Davis E. King's avatar Davis E. King
Browse files

Merge pull request #71 from paulinus/handle-no-encoding

Decode message only if encoding is known
parents c8c55a89 05e24715
......@@ -265,7 +265,8 @@ def enqueue_output(out, queue):
def _log_buf(buf):
if not buf:
return
buf = buf.decode(sys.stdout.encoding)
if sys.stdout.encoding:
buf = buf.decode(sys.stdout.encoding)
buf = buf.rstrip()
lines = buf.splitlines()
for line in lines:
......
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