From 19e68bacf22cd965e819dfa4913740ecc14d1c40 Mon Sep 17 00:00:00 2001 From: unman Date: Fri, 6 Jan 2017 18:40:09 +0000 Subject: [PATCH] Do the right thing on removal of proxyVM used as dispvm_netvm --- core-modules/000QubesVm.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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