[downloader/external] Decode error string before writing to stderr

pull/8/head
Sergey M․ 2016-06-12 16:45:07 +07:00
rodzic 77a9a9c295
commit e69f9f5d68
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 2C393E0F18A9236D
1 zmienionych plików z 1 dodań i 1 usunięć
youtube_dl/downloader

Wyświetl plik

@ -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