From 8098466a07b35534bf2e1b1d21a1955fbfc8cac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Marczykowska-G=C3=B3recka?= Date: Mon, 29 Oct 2018 23:00:59 +0100 Subject: [PATCH] Fix error in qube manager In some cases (when a VM quickly appears and disappears) the events were handled in a wrong order. fixes QubesOS/qubes-issues#4414 --- qubesmanager/qube_manager.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qubesmanager/qube_manager.py b/qubesmanager/qube_manager.py index 9a44f48..7babde8 100644 --- a/qubesmanager/qube_manager.py +++ b/qubesmanager/qube_manager.py @@ -427,8 +427,9 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow): if vm.klass in {'TemplateVM', 'StandaloneVM'}: try: self.vms_in_table[vm.qid].update() - except exc.QubesException: - # the VM might have vanished in the meantime + except (exc.QubesException, KeyError): + # the VM might have vanished in the meantime or + # the signal might have been handled in the wrong order pass def on_domain_added(self, _submitter, _event, vm, **_kwargs):