upgrade wakatime-cli to v3.0.5

This commit is contained in:
Alan Hamlett 2015-01-13 14:06:19 -08:00
parent 1bea7cde8c
commit 56f54fb064
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())