[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