From b32fcb93a37cf05f829f5d5ae3d240697eb69fe1 Mon Sep 17 00:00:00 2001 From: Bin Li Date: Fri, 17 Jun 2022 16:57:54 +0800 Subject: Using ignore to fix the paring error in touchpad_confidence_bit.py. (LP: #1979036) --- bin/touchpad_confidence_bit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') 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 -- cgit v1.2.3