qvm-start --debug don't catch exceptions
This commit is contained in:
parent
3e30dc17cb
commit
8037182dcd
@ -133,13 +133,17 @@ def main(args=None):
|
|||||||
if args.debug:
|
if args.debug:
|
||||||
vm.debug = args.debug
|
vm.debug = args.debug
|
||||||
|
|
||||||
try:
|
if args.debug:
|
||||||
vm.start(
|
vm.start(
|
||||||
preparing_dvm=args.preparing_dvm,
|
preparing_dvm=args.preparing_dvm,
|
||||||
start_guid=args.start_guid)
|
start_guid=args.start_guid)
|
||||||
except qubes.exc.QubesException as e:
|
else:
|
||||||
parser.error_runtime('Qubes error: {!r}'.format(e))
|
try:
|
||||||
|
vm.start(
|
||||||
|
preparing_dvm=args.preparing_dvm,
|
||||||
|
start_guid=args.start_guid)
|
||||||
|
except qubes.exc.QubesException as e:
|
||||||
|
parser.error_runtime('Qubes error: {!r}'.format(e))
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user