diff options
-rw-r--r-- | modules/tracking.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/tracking.py b/modules/tracking.py index aa33980..82c8db0 100644 --- a/modules/tracking.py +++ b/modules/tracking.py @@ -102,6 +102,8 @@ class Module: for package in packages: code = package.attrib['packageId'] eventset = package.find('{%s}EventSet' % ns) + if not len(eventset): + continue last = eventset[0] desc = last.find('{%s}Description' % ns).text.replace('<', '<') desc = re.sub(r'<[^>]*?>', '', desc).encode('utf8') |