From ecb626d64bc7fe8fc4b036a06be8525b92ba98e8 Mon Sep 17 00:00:00 2001 From: Wojtek Porczyk Date: Thu, 21 Jul 2016 19:40:45 +0200 Subject: [PATCH] qubes/vm/qubesvm: Simplify error message --- qubes/vm/qubesvm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qubes/vm/qubesvm.py b/qubes/vm/qubesvm.py index 96ff4560..240bae78 100644 --- a/qubes/vm/qubesvm.py +++ b/qubes/vm/qubesvm.py @@ -1095,9 +1095,9 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM): def remove_from_disk(self): '''Remove domain remnants from disk.''' if not self.is_halted(): - msg = "Can't remove, vm {!s}, beacuse it's in state {!s}." - msg = msg.format(self, self.get_power_state()) - raise qubes.exc.QubesVMNotHaltedError(msg) + raise qubes.exc.QubesVMNotHaltedError( + "Can't remove VM {!s}, beacuse it's in state {!r}.".format( + self, self.get_power_state())) self.fire_event('domain-remove-from-disk') shutil.rmtree(self.dir_path)