diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2016-12-02 08:48:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-02 08:48:37 +0100 |
commit | cd66af227416eb7b9f150b92abff4e4a3e92253b (patch) | |
tree | 4f28cd81f19beb8a16aff8dcb93fc7c5dc8216f1 /hwdb/acpi-update.py | |
parent | cd05bb8bafa808f0a40feaaa0e8cc564c0f203a7 (diff) | |
parent | cda39975dc08a613cd7aad74217cc272aff5cc3b (diff) |
Merge pull request #4797 from keszybz/pylint
Python cleanups based on pylint advice
Diffstat (limited to 'hwdb/acpi-update.py')
-rwxr-xr-x | hwdb/acpi-update.py | 4 |
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 |