qubes/vm/qubesvm: change type of exception

This commit is contained in:
Wojtek Porczyk 2016-06-02 12:16:53 +02:00
parent 3b08e85a2d
commit 6895f34a7f

View File

@ -96,7 +96,7 @@ def _setter_name(self, prop, value):
pass
if value in self.app.domains:
raise qubes.exc.QubesException(
raise qubes.exc.QubesValueError(
'VM named {} alread exists'.format(value))
return value