From 287fc441f31283de13afab58b5e2a130f5befb01 Mon Sep 17 00:00:00 2001 From: donoban Date: Sun, 18 Nov 2018 20:23:26 +0100 Subject: [PATCH] Catch possible KeyError when starting dispVM --- qubesmanager/common_threads.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qubesmanager/common_threads.py b/qubesmanager/common_threads.py index 4c17c1e..52f19f5 100644 --- a/qubesmanager/common_threads.py +++ b/qubesmanager/common_threads.py @@ -34,8 +34,8 @@ class RemoveVMThread(QtCore.QThread): def run(self): try: del self.vm.app.domains[self.vm.name] - except exc.QubesException as ex: - self.msg = ("Error removing Qube!", str(ex)) + except (exc.QubesException, KeyError) as ex: + self.msg = ("Error removing qube!", str(ex)) # pylint: disable=too-few-public-methods