mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-16 01:25:06 +00:00
[downloader/external] Decode error string before writing to stderr
This commit is contained in:
parent
77a9a9c295
commit
e69f9f5d68
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ def _call_downloader(self, tmpfilename, info_dict):
|
||||||
cmd, stderr=subprocess.PIPE)
|
cmd, stderr=subprocess.PIPE)
|
||||||
_, stderr = p.communicate()
|
_, stderr = p.communicate()
|
||||||
if p.returncode != 0:
|
if p.returncode != 0:
|
||||||
self.to_stderr(stderr)
|
self.to_stderr(stderr.decode('utf-8', 'replace'))
|
||||||
return p.returncode
|
return p.returncode
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue