diff --git a/core-modules/000QubesVm.py b/core-modules/000QubesVm.py index 0d312a52..a12537e6 100644 --- a/core-modules/000QubesVm.py +++ b/core-modules/000QubesVm.py @@ -655,7 +655,10 @@ class QubesVm(object): return self.netvm else: if isinstance(self._dispvm_netvm, int): - return self._collection[self._dispvm_netvm] + if self._dispvm_netvm in self._collection: + return self._collection[self._dispvm_netvm] + else: + return None else: return self._dispvm_netvm