import wakatime package outside try block

This commit is contained in:
Alan Hamlett 2013-09-22 16:15:43 -07:00
parent fce10cea07
commit bf6a6f7310

View File

@ -36,14 +36,14 @@ LOCK = threading.RLock()
try:
import ssl
HAS_SSL = True
except ImportError:
from subprocess import Popen
if HAS_SSL:
# import wakatime package
sys.path.insert(0, join(PLUGIN_DIR, 'packages', 'wakatime'))
import wakatime
except ImportError:
from subprocess import Popen
def setup_settings_file():
""" Convert ~/.wakatime.conf to WakaTime.sublime-settings