commit e69f9f5d68aed32cc27ca188b0f51925d949c365
parent 77a9a9c295c753c4de4c96def6a9a15de1025f0f
Author: Sergey M․ <dstftw@gmail.com>
Date: Sun, 12 Jun 2016 16:45:07 +0700
[downloader/external] Decode error string before writing to stderr
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/youtube_dl/downloader/external.py b/youtube_dl/downloader/external.py
@@ -85,7 +85,7 @@ class ExternalFD(FileDownloader):
cmd, stderr=subprocess.PIPE)
_, stderr = p.communicate()
if p.returncode != 0:
- self.to_stderr(stderr)
+ self.to_stderr(stderr.decode('utf-8', 'replace'))
return p.returncode