diff --git a/qubes/vm/__init__.py b/qubes/vm/__init__.py index 1a5b9d08a..b3be66e92 100644 --- a/qubes/vm/__init__.py +++ b/qubes/vm/__init__.py @@ -487,7 +487,10 @@ def __set__(self, instance, value): try: vm = app.domains[value] except KeyError: - raise qubes.exc.QubesVMNotFoundError(value) + raise qubes.exc.QubesPropertyValueError(instance, self, value, + "Can't set {!s} to non-existing qube {!s}".format( + self, + value)) if not isinstance(vm, self.vmclass): raise qubes.exc.QubesPropertyValueError(instance, self, value,