libvirtError in _update_libvirt_domain is no longer silently swallowed.

I had some issue with fstrim and the missing else had caused the code to continue and fail later with a non-descriptive error message. This commit makes the error message more descriptive and helpful.
This commit is contained in:
Vít Šesták 2015-11-24 18:42:53 +01:00
parent 520b546d75
commit eb97c5652f

View File

@ -732,6 +732,8 @@ class QubesVm(object):
raise QubesException("HVM domains not supported on this "
"machine. Check BIOS settings for "
"VT-x/AMD-V extensions.")
else:
raise e
self.uuid = uuid.UUID(bytes=self._libvirt_domain.UUID())
@property