Browse Source

ext/pci: fix error message about missing device

Print human readable device name, instead of "<PCIDevice at ...".

QubesOS/qubes-issues#4461
Marek Marczykowski-Górecki 5 years ago
parent
commit
64f290c9ba
1 changed files with 1 additions and 1 deletions
  1. 1 1
      qubes/ext/pci.py

+ 1 - 1
qubes/ext/pci.py

@@ -300,7 +300,7 @@ class PCIDeviceExtension(qubes.ext.Extension):
         except libvirt.libvirtError as e:
             if e.get_error_code() == libvirt.VIR_ERR_NO_NODE_DEVICE:
                 raise qubes.exc.QubesException(
-                    'PCI device {!r} does not exist'.format(
+                    'PCI device {!s} does not exist'.format(
                         device))
             raise