mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-01-23 02:37:34 +01:00
Fix verbose log when stdout/stderr encoding is None
See: 5c104538270e5fc5ff8cf1007c34c0bf1e82e003
This commit is contained in:
parent
933dbf5a55
commit
2a938746f3
@ -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)'
|
||||
|
Loading…
x
Reference in New Issue
Block a user