diff --git a/virtManager/connection.py b/virtManager/connection.py index fce4d89f5..96bd04c25 100644 --- a/virtManager/connection.py +++ b/virtManager/connection.py @@ -318,12 +318,12 @@ class vmmConnection(vmmGObject): caps = property(lambda self: getattr(self, "_backend").caps) def host_memory_size(self): - if not self._backend.is_open(): + if not self._backend.is_open() or self._hostinfo is None: return 0 return self._hostinfo[1] * 1024 def host_active_processor_count(self): - if not self._backend.is_open(): + if not self._backend.is_open() or self._hostinfo is None: return 0 return self._hostinfo[2]