add v2 to PATCH tag do identify the new patch


Reviewed-By: Ramon Medeiros <ramonn@br.ibm.com>


On 12/13/2016 03:33 PM, bianca@linux.vnet.ibm.com wrote:
From: Bianca Carvalho <bianca@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@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):

-- 

Ramon Nunes Medeiros
Kimchi Developer
Linux Technology Center Brazil
IBM Systems & Technology Group
Phone : +55 19 2132 7878
ramonn@br.ibm.com