tuned/tuned-2.4.1-powertop2tuned-keyerror-fix.patch
2015-01-09 15:57:20 +01:00

12 lines
472 B
Diff

--- 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