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

Ramon Medeiros ramonn at linux.vnet.ibm.com
Tue Dec 13 19:31:23 UTC 2016


add v2 to PATCH tag do identify the new patch


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


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

-- 

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/kimchi-devel/attachments/20161213/8ba20de4/attachment.html>


More information about the Kimchi-devel mailing list