qvm-start --debug don't catch exceptions

This commit is contained in:
Bahtiar `kalkin-` Gadimov 2016-08-06 17:01:31 +02:00
parent 3e30dc17cb
commit 8037182dcd
No known key found for this signature in database
GPG Key ID: 96ED3C3BA19C3DEE

View File

@ -133,13 +133,17 @@ def main(args=None):
if args.debug:
vm.debug = args.debug
try:
if args.debug:
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))
else:
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