update wakatime-cli to v2.1.4

when Python was not compiled with https support, log an error to the log file
This commit is contained in:
Alan Hamlett 2014-11-12 19:58:54 -08:00
parent 08b64b4ff6
commit 21395579ea
3 changed files with 17 additions and 2 deletions

View file

@ -3,6 +3,18 @@ History
-------
2.1.4 (2014-11-12)
++++++++++++++++++
- when Python was not compiled with https support, log an error to the log file
2.1.3 (2014-11-10)
++++++++++++++++++
- correctly detect branch name for subversion projects
2.1.2 (2014-10-07)
++++++++++++++++++

View file

@ -13,7 +13,7 @@
from __future__ import print_function
__title__ = 'wakatime'
__version__ = '2.1.3'
__version__ = '2.1.4'
__author__ = 'Alan Hamlett'
__license__ = 'BSD'
__copyright__ = 'Copyright 2014 Alan Hamlett'
@ -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)

View file

@ -30,6 +30,7 @@ EXTENSIONS = {
'j2': 'HTML',
'markdown': 'Markdown',
'md': 'Markdown',
'mdown': 'Markdown',
'twig': 'Twig',
}
TRANSLATIONS = {