Fix error on non ASCII PCI IDs upon qvm-device list
solves https://github.com/QubesOS/qubes-issues/issues/4229
This commit is contained in:
parent
fbdf460db8
commit
6f04c8d65b
@ -42,7 +42,7 @@ def load_pci_classes():
|
||||
# subclass subclass_name <-- single tab
|
||||
# prog-if prog-if_name <-- two tabs
|
||||
result = {}
|
||||
with open('/usr/share/hwdata/pci.ids') as pciids:
|
||||
with open('/usr/share/hwdata/pci.ids', encoding='utf-8', errors='ignore') as pciids:
|
||||
class_id = None
|
||||
subclass_id = None
|
||||
for line in pciids.readlines():
|
||||
|
Loading…
Reference in New Issue
Block a user