--- a/experiments/powertop2tuned.py 2014-10-15 09:15:23.000000000 -0400 +++ b/experiments/powertop2tuned.py 2014-12-21 01:27:40.875480511 -0500 @@ -83,7 +83,7 @@ def handle_starttag(self, tag, attrs): self.lastStartTag = tag - if self.lastStartTag == "div" and dict(attrs)["id"] == "tuning": + if self.lastStartTag == "div" and dict(attrs).get("id") == "tuning": self.inProperTable = True if self.inProperTable and tag == "td": self.tdCounter += 1