From 8037182dcd38dff82f59de396f6af077716364e7 Mon Sep 17 00:00:00 2001 From: Bahtiar `kalkin-` Gadimov Date: Sat, 6 Aug 2016 17:01:31 +0200 Subject: [PATCH] qvm-start --debug don't catch exceptions --- qubes/tools/qvm_start.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/qubes/tools/qvm_start.py b/qubes/tools/qvm_start.py index 4054265a..ab3106f3 100644 --- a/qubes/tools/qvm_start.py +++ b/qubes/tools/qvm_start.py @@ -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