Catch possible KeyError when starting dispVM

Este commit está contenido en:
donoban 2018-11-18 20:23:26 +01:00
padre 935a6ca6c7
commit 287fc441f3
No se encontró ninguna clave conocida en la base de datos para esta firma
ID de clave GPG: 141310D8E3ED08A5

Ver fichero

@ -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