Re: [PATCH] virt-manager: small exception handling fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Andy Grover wrote:
Hi,

This patch fixes exception handling slightly in virt-manager.

Thanks -- Andy

diff -r 334e563e54c9 src/virtManager/domain.py
--- a/src/virtManager/domain.py	Sat Oct 06 16:14:45 2007 -0400
+++ b/src/virtManager/domain.py	Tue Oct 09 15:51:16 2007 -0700
@@ -681,7 +681,7 @@ class vmmDomain(gobject.GObject):
         try:
             if self.is_active():
                 self.vm.attachDevice(xml)
-        except libvirtError, e:
+        except libvirt.libvirtError, e:
             device_exception = str(e)
index = vmxml.find("</devices>")
@@ -703,7 +703,7 @@ class vmmDomain(gobject.GObject):
         if self.is_active():
             try:
                 self.vm.detachDevice(dev_xml)
-            except libvirtError, e:
+            except libvirt.libvirtError, e:
                 device_exception = str(e)
# then the stored XML


Thanks for this, I'll add it shortly...

--Hugh

--
Red Hat Virtualization Group http://redhat.com/virtualization
Hugh Brock           | virt-manager http://virt-manager.org
hbrock@xxxxxxxxxx    | virtualization library http://libvirt.org

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux