manager: Handle removal of VM during on_shutdown.

Fixes QubesOS/qubes-issues#5105
This commit is contained in:
3hhh 2021-04-09 17:55:57 +02:00
parent 1afd46da6b
commit 72cbec7645
No known key found for this signature in database
GPG Key ID: EB03A691DB2F0833

View File

@ -1061,7 +1061,7 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QMainWindow):
update(event="outdated")
self.proxy.invalidate()
self.table_selection_changed()
except exc.QubesDaemonAccessError:
except (exc.QubesDaemonAccessError, exc.QubesVMNotFoundError):
return # the VM was deleted before its status could be updated
except KeyError: # adding the VM failed for some reason
self.on_domain_added(None, None, vm)