From 3d17c92bd3028888e7786589f085a937e699ba91 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Tue, 29 May 2018 22:36:25 -0400 Subject: [PATCH] moved import certifi to run only on windows --- lbrynet/daemon/DaemonControl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/daemon/DaemonControl.py b/lbrynet/daemon/DaemonControl.py index 42d5cae76..8d73c9ce0 100644 --- a/lbrynet/daemon/DaemonControl.py +++ b/lbrynet/daemon/DaemonControl.py @@ -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