A feature-rich command-line audio/video downloader
Workaround `libc_ver` not be available on Windows Store version of Python
pukkandandab284f80fb0
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.pyindex f6f7c38d10..443c498148 100644--- a/yt_dlp/utils.py+++ b/yt_dlp/utils.py@@ -1966,13 +1966,16 @@ def system_identifier():python_implementation = platform.python_implementation()if python_implementation == 'PyPy' and hasattr(sys, 'pypy_version_info'):python_implementation += ' version %d.%d.%d' % sys.pypy_version_info[:3]+ libc_ver = []+ with contextlib.suppress(OSError): # We may not have access to the executable+ libc_ver = platform.libc_ver()return 'Python %s (%s %s) - %s %s' % (platform.python_version(),python_implementation,platform.architecture()[0],platform.platform(),- format_field(join_nonempty(*platform.libc_ver(), delim=' '), None, '(%s)'),+ format_field(join_nonempty(*libc_ver, delim=' '), None, '(%s)'),)