summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-06-12 16:45:07 +0700
committerSergey M․ <dstftw@gmail.com>2016-06-12 16:45:07 +0700
commite69f9f5d68aed32cc27ca188b0f51925d949c365 (patch)
tree02dddf02617af91b83bebb65311c01cb257a4b1e
parent77a9a9c295c753c4de4c96def6a9a15de1025f0f (diff)
downloadyoutube-dl-e69f9f5d68aed32cc27ca188b0f51925d949c365.tar.gz
youtube-dl-e69f9f5d68aed32cc27ca188b0f51925d949c365.tar.xz
youtube-dl-e69f9f5d68aed32cc27ca188b0f51925d949c365.zip
[downloader/external] Decode error string before writing to stderr
-rw-r--r--youtube_dl/downloader/external.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/downloader/external.py b/youtube_dl/downloader/external.py
index 3ff1f9ed4..fae245024 100644
--- 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