1 # Don't crash due to weird PCI cards (Bug 767742)
3 diff -r fb8dd4c67778 tools/python/xen/util/pci.py
4 --- a/tools/python/xen/util/pci.py Tue Dec 13 14:16:20 2011 -0500
5 +++ b/tools/python/xen/util/pci.py Wed Dec 14 15:46:56 2011 -0500
6 @@ -1268,7 +1268,12 @@ class PciDevice:
9 def get_info_from_sysfs(self):
10 - self.find_capability(0x11)
12 + self.find_capability(0x11)
13 + except PciDeviceParseError, err:
14 + log.error("Caught '%s'" % err)
17 sysfs_mnt = find_sysfs_mnt()