qvm-ls hide stacktrace if qubes.xml is missing

This commit is contained in:
Bahtiar `kalkin-` Gadimov 2016-07-12 22:52:56 +02:00 committed by Wojtek Porczyk
parent c614f101f4
commit c5307f3f47

View File

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