From 2a938746f3db75fc160aab055e889f1e31ccabed Mon Sep 17 00:00:00 2001 From: pukkandan Date: Fri, 4 Mar 2022 19:45:05 +0530 Subject: [PATCH] Fix verbose log when stdout/stderr encoding is `None` See: 5c104538270e5fc5ff8cf1007c34c0bf1e82e003 --- yt_dlp/YoutubeDL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 23e42f740..0aee3b122 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -3588,7 +3588,7 @@ class YoutubeDL(object): return def get_encoding(stream): - ret = getattr(stream, 'encoding', 'missing (%s)' % type(stream).__name__) + ret = str(getattr(stream, 'encoding', 'missing (%s)' % type(stream).__name__)) if not supports_terminal_sequences(stream): from .compat import WINDOWS_VT_MODE ret += ' (No VT)' if WINDOWS_VT_MODE is False else ' (No ANSI)'