diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-04-12 05:23:27 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-04-12 05:32:53 +0530 |
commit | b07897ef5bcdb865991d8601faef64a451da39fc (patch) | |
tree | 9c23f8a6017af4573266a65a64da56442e7bb1d4 /yt_dlp/utils.py | |
parent | e5a998f3684e7c56f9cf1c07c4e176e891d96509 (diff) | |
download | hypervideo-pre-b07897ef5bcdb865991d8601faef64a451da39fc.tar.lz hypervideo-pre-b07897ef5bcdb865991d8601faef64a451da39fc.tar.xz hypervideo-pre-b07897ef5bcdb865991d8601faef64a451da39fc.zip |
[utils] certifi: Make sure the pem file exists
Closes #3353
Diffstat (limited to 'yt_dlp/utils.py')
-rw-r--r-- | yt_dlp/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py index 35e8d1d5b..966548466 100644 --- a/yt_dlp/utils.py +++ b/yt_dlp/utils.py @@ -70,7 +70,8 @@ from .socks import ProxyType, sockssocket try: import certifi - has_certifi = True + # The certificate may not be bundled in executable + has_certifi = os.path.exists(certifi.where()) except ImportError: has_certifi = False |