[utils] certifi: Make sure the pem file exists

Closes #3353
pull/3404/head
pukkandan 2022-04-12 05:23:27 +05:30
rodzic e5a998f368
commit b07897ef5b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7EEE9E1E817D0A39
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

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