tuned/tuned-2.4.1-powertop2tuned-keyerror-fix.patch

12 lines
472 B
Diff
Raw Normal View History

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