qvm-tools: fix error reporting in qvm-kill
This commit is contained in:
parent
73301a67c8
commit
25c425920c
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user