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(',')]