[virt-tools-list] [PATCH 1/3] Fix exception with older gi versions
Giuseppe Scrivano
gscrivano at gnu.org
Mon Mar 11 08:21:46 UTC 2013
The method gi.check_version was defined in 3.3.5. Prevent an exception
with older versions of the library.
---
src/virtManager/manager.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/virtManager/manager.py b/src/virtManager/manager.py
index 991bcd7..7ca0861 100644
--- a/src/virtManager/manager.py
+++ b/src/virtManager/manager.py
@@ -65,7 +65,7 @@ try:
import gi
gi.check_version("3.7.4")
can_set_row_none = True
-except ValueError:
+except (ValueError, AttributeError):
can_set_row_none = False
--
1.7.10.4
More information about the virt-tools-list
mailing list