diff options
author | Bin Li <bin.li@canonical.com> | 2022-06-17 16:37:30 +0800 |
---|---|---|
committer | Bin Li <bin.li@canonical.com> | 2022-06-17 16:37:30 +0800 |
commit | a833214fc731f5bff72957b98fe524fbd3907441 (patch) | |
tree | 93bf452efa27032b988a3285790a7630ccfdb9b4 | |
parent | af38457b427063cd2705939515cd652d9aba00aa (diff) |
Using ignore to fix the paring error. (LP: #1979036)
-rwxr-xr-x | bin/network_device_info.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/network_device_info.py b/bin/network_device_info.py index 10865b9..f3ba7d3 100755 --- a/bin/network_device_info.py +++ b/bin/network_device_info.py @@ -343,7 +343,7 @@ class UdevDevices(): 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 |