diff options
author | Bin Li <bin.li@canonical.com> | 2022-06-17 16:57:54 +0800 |
---|---|---|
committer | Bin Li <bin.li@canonical.com> | 2022-06-17 16:57:54 +0800 |
commit | b32fcb93a37cf05f829f5d5ae3d240697eb69fe1 (patch) | |
tree | f1e8b0a2af616bb79a7eabe92e08299cf6fc5f8e /bin | |
parent | a833214fc731f5bff72957b98fe524fbd3907441 (diff) |
Using ignore to fix the paring error in touchpad_confidence_bit.py. (LP: #1979036)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/touchpad_confidence_bit.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/touchpad_confidence_bit.py b/bin/touchpad_confidence_bit.py index ff47e6d..e482b95 100755 --- a/bin/touchpad_confidence_bit.py +++ b/bin/touchpad_confidence_bit.py @@ -14,7 +14,7 @@ class TouchpadDevices: def _collect_devices(self): cmd = ['udevadm', 'info', '--export-db'] try: - output = check_output(cmd).decode(sys.stdout.encoding) + output = check_output(cmd).decode(sys.stdout.encoding, errors='ignore') except CalledProcessError as err: sys.stderr.write(err) return |