[utils] certifi: Make sure the pem file exists

Closes #3353
pull/3404/head
pukkandan 3 years ago
parent e5a998f368
commit b07897ef5b
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39

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

Loading…
Cancel
Save