qvm-tools: fix error reporting in qvm-kill

This commit is contained in:
Marek Marczykowski-Górecki 2015-01-08 03:56:45 +01:00
parent 73301a67c8
commit 25c425920c

View File

@ -21,8 +21,8 @@
#
#
from qubes.qubes import QubesVmCollection
from optparse import OptionParser;
from qubes.qubes import QubesVmCollection,QubesException
from optparse import OptionParser
import subprocess
import sys
@ -48,7 +48,7 @@ def main():
try:
vm.force_shutdown()
except (IOError, OSError) as err:
except (IOError, OSError, QubesException) as err:
print >> sys.stderr, "ERROR: {0}".format(err)
exit (1)