ia64/xen-unstable

changeset 19233:84af3ded5b02

xend: Fix exception in pci_convert_sxp_to_dict()

Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Feb 19 11:07:33 2009 +0000 (2009-02-19)
parents 2a8ba98a5cff
children 4771bceb1889
files tools/python/xen/xend/XendConfig.py
line diff
     1.1 --- a/tools/python/xen/xend/XendConfig.py	Thu Feb 19 11:01:15 2009 +0000
     1.2 +++ b/tools/python/xen/xend/XendConfig.py	Thu Feb 19 11:07:33 2009 +0000
     1.3 @@ -1586,7 +1586,7 @@ class XendConfig(dict):
     1.4                  try:
     1.5                      opt, val = opt_val
     1.6                      pci_dev_info[opt] = val
     1.7 -                except TypeError:
     1.8 +                except (TypeError, ValueError):
     1.9                      pass
    1.10              # append uuid for each pci device.
    1.11              dpci_uuid = pci_dev_info.get('uuid', uuid.createString())