0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-22 02:15:12 +00:00

[utils] certifi: Make sure the pem file exists

Closes #3353
This commit is contained in:
pukkandan 2022-04-12 05:23:27 +05:30
parent e5a998f368
commit b07897ef5b
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39

View file

@ -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