upgrade external wakatime package to v2.1.2

This commit is contained in:
Alan Hamlett 2014-10-07 04:46:19 -07:00
parent b7c047102d
commit cbd92a69b3
3 changed files with 9 additions and 4 deletions

View file

@ -3,6 +3,12 @@ History
-------
2.1.2 (2014-10-07)
++++++++++++++++++
- still log heartbeat when something goes wrong while reading num lines in file
2.1.1 (2014-09-30)
++++++++++++++++++

View file

@ -13,7 +13,7 @@
from __future__ import print_function
__title__ = 'wakatime'
__version__ = '2.1.1'
__version__ = '2.1.2'
__author__ = 'Alan Hamlett'
__license__ = 'BSD'
__copyright__ = 'Copyright 2014 Alan Hamlett'
@ -122,8 +122,7 @@ def parseConfigFile(configFile):
print(traceback.format_exc())
return None
except IOError:
if not os.path.isfile(configFile):
print('Error: Could not read from config file ~/.wakatime.cfg')
print(u('Error: Could not read from config file {0}').format(configFile))
return configs

View file

@ -82,7 +82,7 @@ def number_lines_in_file(file_name):
with open(file_name, 'r', encoding='utf-8') as fh:
for line in fh:
lines += 1
except IOError:
except:
return None
return lines