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) 2.1.2 (2014-10-07)
++++++++++++++++++ ++++++++++++++++++

View File

@ -13,7 +13,7 @@
from __future__ import print_function from __future__ import print_function
__title__ = 'wakatime' __title__ = 'wakatime'
__version__ = '2.1.3' __version__ = '2.1.4'
__author__ = 'Alan Hamlett' __author__ = 'Alan Hamlett'
__license__ = 'BSD' __license__ = 'BSD'
__copyright__ = 'Copyright 2014 Alan Hamlett' __copyright__ = 'Copyright 2014 Alan Hamlett'
@ -318,7 +318,9 @@ def send_action(project=None, branch=None, stats=None, key=None, targetFile=None
if offline: if offline:
queue = Queue() queue = Queue()
queue.push(data, plugin) 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) log.warn(exception_data)
else: else:
log.error(exception_data) log.error(exception_data)

View File

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