upgraded wakatime package to v0.4.1

This commit is contained in:
Alan Hamlett 2013-08-25 16:35:32 -07:00
parent c01307dda4
commit f0b1021f17
2 changed files with 8 additions and 2 deletions

View file

@ -2,6 +2,12 @@
History History
------- -------
0.4.1 (2013-08-25)
++++++++++++++++++
- Fix bug causing requests library to omit POST content
0.4.0 (2013-08-15) 0.4.0 (2013-08-15)
++++++++++++++++++ ++++++++++++++++++

View file

@ -12,7 +12,7 @@
from __future__ import print_function from __future__ import print_function
__title__ = 'wakatime' __title__ = 'wakatime'
__version__ = '0.4.0' __version__ = '0.4.1'
__author__ = 'Alan Hamlett' __author__ = 'Alan Hamlett'
__license__ = 'BSD' __license__ = 'BSD'
__copyright__ = 'Copyright 2013 Alan Hamlett' __copyright__ = 'Copyright 2013 Alan Hamlett'
@ -148,7 +148,7 @@ def send_action(project=None, branch=None, key=None, targetFile=None,
# send action to api # send action to api
try: try:
response = requests.post(url, data=str.encode(json.dumps(data)), headers=headers) response = requests.post(url, data=str(json.dumps(data)), headers=headers)
except requests.exceptions.RequestException as exc: except requests.exceptions.RequestException as exc:
exception_data = { exception_data = {
sys.exc_info()[0].__name__: str(sys.exc_info()[1]), sys.exc_info()[0].__name__: str(sys.exc_info()[1]),