File 19232-xend-exception-fix.patch of Package xen
# HG changeset patch
# User Keir Fraser <keir.fraser@citrix.com>
# Date 1235130178 0
# Node ID 0e5c27d41031cdca556f68f0eb43d57b9f637262
# Parent 44419cfdb6a4f546d1c7f7c86dcd139861893d0a
xend: Fix exception in pci_convert_sxp_to_dict()
Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
xen-unstable changeset: 19232:84af3ded5b02ba0b3f8647e3bfa993725428633b
xen-unstable date: Thu Feb 19 11:07:33 2009 +0000
Index: xen-3.3.1-testing/tools/python/xen/xend/XendConfig.py
===================================================================
--- xen-3.3.1-testing.orig/tools/python/xen/xend/XendConfig.py
+++ xen-3.3.1-testing/tools/python/xen/xend/XendConfig.py
@@ -1539,7 +1539,7 @@ class XendConfig(dict):
try:
opt, val = opt_val
pci_dev_info[opt] = val
- except TypeError:
+ except (TypeError, ValueError):
pass
# append uuid for each pci device.
dpci_uuid = pci_dev_info.get('uuid', uuid.createString())