diff options
author | Cole Robinson <crobinso@redhat.com> | 2014-03-06 12:04:08 -0500 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2014-03-06 12:04:08 -0500 |
commit | df7012a68b6a13a676e2019523f6863617a110d8 (patch) | |
tree | 8c6832660ce210b028e960e867f323ad0a850ed4 | |
parent | 9074fc6c6080cf650cf97457dda799700ee2b635 (diff) | |
download | virt-manager-df7012a68b6a13a676e2019523f6863617a110d8.tar.gz |
Handle libvirt generating invalid volume XML (bz 1072770)
-rw-r--r-- | virtManager/connection.py | 2 | ||||
-rw-r--r-- | virtinst/connection.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/virtManager/connection.py b/virtManager/connection.py index 96dfa1c9..57e143d7 100644 --- a/virtManager/connection.py +++ b/virtManager/connection.py @@ -179,7 +179,7 @@ class vmmConnection(vmmGObject): for vol in pool.get_volumes(refresh=False).values(): try: ret.append(vol.get_xmlobj(refresh_if_nec=False)) - except libvirt.libvirtError, e: + except Exception, e: logging.debug("Fetching volume XML failed: %s", e) return ret self._backend.cb_fetch_all_vols = fetch_all_vols diff --git a/virtinst/connection.py b/virtinst/connection.py index a915f257..3cc5b79a 100644 --- a/virtinst/connection.py +++ b/virtinst/connection.py @@ -222,7 +222,7 @@ class VirtualConnection(object): try: xml = vol.XMLDesc(0) ret.append(StorageVolume(weakref.ref(self), parsexml=xml)) - except libvirt.libvirtError, e: + except Exception, e: logging.debug("Fetching volume XML failed: %s", e) if self.cache_object_fetch: |