Browse Source
[downloader/external] Decode error string before writing to stderr
master
Sergey M․
8 years ago
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with
1 additions and
1 deletions
-
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 |
|
|
|
|
|
|
|
|
|
|
|