Index: globals/get_browser_versions.py |
=================================================================== |
--- a/globals/get_browser_versions.py |
+++ b/globals/get_browser_versions.py |
@@ -45,8 +45,10 @@ |
finally: |
response.close() |
- update = doc.getElementsByTagName('update')[0] |
- full_version = update.getAttribute(attribute) |
+ updates = doc.getElementsByTagName('update') |
+ if not updates: |
+ raise Exception('No updates for %s in %s channel' % (product, channel)) |
+ full_version = updates[0].getAttribute(attribute) |
match = re.search(r'^(\d+)(?:\.\d+)?', full_version) |
if minor: |