moved import certifi to run only on windows

This commit is contained in:
Lex Berezhny 2018-05-29 22:36:25 -04:00
parent 0d35621a9a
commit 3d17c92bd3

View file

@ -1,10 +1,10 @@
import certifi
import os
import sys
# Set SSL_CERT_FILE env variable for Twisted SSL verification on Windows
# This needs to happen before anything else
if 'win' in sys.platform:
import certifi
os.environ['SSL_CERT_FILE'] = certifi.where()
from lbrynet.core import log_support