From c5307f3f47d19403c27e5ad754b5f09fe512362e Mon Sep 17 00:00:00 2001 From: Bahtiar `kalkin-` Gadimov Date: Tue, 12 Jul 2016 22:52:56 +0200 Subject: [PATCH] qvm-ls hide stacktrace if qubes.xml is missing --- qubes/tools/qvm_ls.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qubes/tools/qvm_ls.py b/qubes/tools/qvm_ls.py index 24ec5d5d..d16d929a 100644 --- a/qubes/tools/qvm_ls.py +++ b/qubes/tools/qvm_ls.py @@ -604,7 +604,11 @@ def main(args=None): ''' parser = get_parser() - args = parser.parse_args(args) + try: + args = parser.parse_args(args) + except qubes.exc.QubesException as e: + parser.print_error(e.message) + return 1 if args.fields: columns = [col.strip() for col in args.fields.split(',')]