aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cws-status7
1 files changed, 5 insertions, 2 deletions
diff --git a/cws-status b/cws-status
index 2a26421..02d4a7f 100644
--- a/cws-status
+++ b/cws-status
@@ -111,8 +111,11 @@ item_statuses = tree.xpath('//table[//th[text()="Item"]]/tbody/tr/td[7]/text()')
matched_extensions = []
for i, name in enumerate(item_names_versions):
- print(i, name, item_names_versions, item_statuses)
- print(i, item_statuses)
+ # `item_statuses` can be shorter than `item_names_versions` for some
+ # reason. If that happens I guess just show what we could find.
+ if i >= len(item_statuses):
+ break
+
if re.search(regex, name):
matched_extensions.append((name, item_statuses[i]))