From 5dbb19eb50ca9e8bfec3eadac75b71407a423d88 Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Wed, 12 Nov 2014 19:30:13 -0800 Subject: [PATCH] when Python was not compiled with https support, log an error to the log file --- wakatime/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wakatime/__init__.py b/wakatime/__init__.py index e3bfb1b..1e2d310 100644 --- a/wakatime/__init__.py +++ b/wakatime/__init__.py @@ -318,7 +318,9 @@ def send_action(project=None, branch=None, stats=None, key=None, targetFile=None if offline: queue = Queue() queue.push(data, plugin) - if log.isEnabledFor(logging.DEBUG): + if 'unknown url type: https' in u(sys.exc_info()[1]): + log.error(exception_data) + elif log.isEnabledFor(logging.DEBUG): log.warn(exception_data) else: log.error(exception_data)