upgrade wakatime-cli to v3.0.5 to fix #17

This commit is contained in:
Alan Hamlett 2015-01-13 14:01:55 -08:00
parent 49c30c9b89
commit 1b5ad4a34b
3 changed files with 12 additions and 2 deletions

View file

@ -3,6 +3,12 @@ History
-------
3.0.5 (2015-01-13)
++++++++++++++++++
- ignore errors from malformed markup (too many closing tags)
3.0.4 (2015-01-06)
++++++++++++++++++

View file

@ -13,7 +13,7 @@
from __future__ import print_function
__title__ = 'wakatime'
__version__ = '3.0.4'
__version__ = '3.0.5'
__author__ = 'Alan Hamlett'
__license__ = 'BSD'
__copyright__ = 'Copyright 2014 Alan Hamlett'

View file

@ -120,7 +120,11 @@ class HtmlDjangoParser(TokenParser):
def _process_tag(self, token, content):
if content.startswith('</') or content.startswith('/'):
self.tags.pop(0)
try:
self.tags.pop(0)
except IndexError:
# ignore errors from malformed markup
pass
self.getting_attrs = False
elif content.startswith('<'):
self.tags.insert(0, content.replace('<', '', 1).strip().lower())