From bf6a6f731068f7e374d81ad40ed2a50cca7dbf34 Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Sun, 22 Sep 2013 16:15:43 -0700 Subject: [PATCH] import wakatime package outside try block --- WakaTime.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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