diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-06-12 16:45:07 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-06-12 16:45:07 +0700 |
commit | e69f9f5d68aed32cc27ca188b0f51925d949c365 (patch) | |
tree | 02dddf02617af91b83bebb65311c01cb257a4b1e /youtube_dl | |
parent | 77a9a9c295c753c4de4c96def6a9a15de1025f0f (diff) |
[downloader/external] Decode error string before writing to stderr
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/downloader/external.py | 2 |
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 |