[Kimchi-devel] [PATCH] [Kimchi] Bug fix #1057: Failed to import kimchi

bianca at linux.vnet.ibm.com bianca at linux.vnet.ibm.com
Tue Dec 13 17:33:35 UTC 2016


From: Bianca Carvalho <bianca at linux.vnet.ibm.com>

Changed "registerAttachDevicesEvent" in model/libvirtevents.py file
to include AttributeError as a exception to make sure kimchi will
be running even if this exception is true.

Signed-off-by: Bianca Carvalho <bianca at linux.vnet.ibm.com>
---
 model/libvirtevents.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/model/libvirtevents.py b/model/libvirtevents.py
index 2dd9904..716420c 100644
--- a/model/libvirtevents.py
+++ b/model/libvirtevents.py
@@ -101,7 +101,7 @@ class LibvirtEvents(object):
                 cb,
                 arg)
 
-        except libvirt.libvirtError as e:
+        except (AttributeError, libvirt.libvirtError), e:
             wok_log.error("register attach event failed: %s" % e.message)
 
     def registerDetachDevicesEvent(self, conn, cb, arg):
-- 
2.1.4




More information about the Kimchi-devel mailing list