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: try:
import ssl import ssl
HAS_SSL = True HAS_SSL = True
except ImportError:
from subprocess import Popen
if HAS_SSL:
# import wakatime package # import wakatime package
sys.path.insert(0, join(PLUGIN_DIR, 'packages', 'wakatime')) sys.path.insert(0, join(PLUGIN_DIR, 'packages', 'wakatime'))
import wakatime import wakatime
except ImportError:
from subprocess import Popen
def setup_settings_file(): def setup_settings_file():
""" Convert ~/.wakatime.conf to WakaTime.sublime-settings """ Convert ~/.wakatime.conf to WakaTime.sublime-settings