summaryrefslogtreecommitdiff
path: root/hwdb/acpi-update.py
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2016-12-02 08:48:37 +0100
committerGitHub <noreply@github.com>2016-12-02 08:48:37 +0100
commitcd66af227416eb7b9f150b92abff4e4a3e92253b (patch)
tree4f28cd81f19beb8a16aff8dcb93fc7c5dc8216f1 /hwdb/acpi-update.py
parentcd05bb8bafa808f0a40feaaa0e8cc564c0f203a7 (diff)
parentcda39975dc08a613cd7aad74217cc272aff5cc3b (diff)
Merge pull request #4797 from keszybz/pylint
Python cleanups based on pylint advice
Diffstat (limited to 'hwdb/acpi-update.py')
-rwxr-xr-xhwdb/acpi-update.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/hwdb/acpi-update.py b/hwdb/acpi-update.py
index 2dc8c7c064..50da531dc6 100755
--- a/hwdb/acpi-update.py
+++ b/hwdb/acpi-update.py
@@ -31,7 +31,7 @@ class PNPTableParser(HTMLParser):
elif self.state == State.AFTER_PNPID:
self.state = State.DATE
else:
- raise Error("Unexpected field")
+ raise ValueError
self.data = ""
@@ -48,7 +48,7 @@ class PNPTableParser(HTMLParser):
elif self.state == State.DATE:
self.state = State.NOWHERE
else:
- raise Error("Unexpected field")
+ raise ValueError
def handle_data(self, data):
self.data += data