mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-11-02 13:44:20 +09:00
[downloader/external] Decode error string before writing to stderr
This commit is contained in:
1 file changed
+1
-1
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user