From b07897ef5bcdb865991d8601faef64a451da39fc Mon Sep 17 00:00:00 2001 From: pukkandan Date: Tue, 12 Apr 2022 05:23:27 +0530 Subject: [PATCH] [utils] certifi: Make sure the pem file exists Closes #3353 --- yt_dlp/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py index 35e8d1d5b6..966548466e 100644 --- a/yt_dlp/utils.py +++ b/yt_dlp/utils.py @@ -70,7 +70,8 @@ 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