diff --git a/WakaTime.py b/WakaTime.py index 45893e9..2857dd3 100644 --- a/WakaTime.py +++ b/WakaTime.py @@ -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