debuggers.hg

changeset 21098:dbe65678b6f8

xend: fix traceback in pci.py

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 23 07:29:10 2010 +0000 (2010-03-23)
parents bcc09eb7379f
children b9c814247a63
files tools/python/xen/util/pci.py
line diff
     1.1 --- a/tools/python/xen/util/pci.py	Tue Mar 23 07:28:33 2010 +0000
     1.2 +++ b/tools/python/xen/util/pci.py	Tue Mar 23 07:29:10 2010 +0000
     1.3 @@ -1251,6 +1251,9 @@ class PciDevice:
     1.4          except IOError, (errno, strerr):
     1.5              raise PciDeviceParseError(('Failed to locate sysfs mount: %s: %s (%d)' %
     1.6                  (PROC_PCI_PATH, strerr, errno)))
     1.7 +        except TypeError, err:
     1.8 +            log.debug("Caught TypeError '%s'" % err)
     1.9 +            pass
    1.10  
    1.11      def get_info_from_sysfs(self):
    1.12          self.find_capability(0x11)