tools: fix error reporing on unknown storage pool

This commit is contained in:
Marek Marczykowski-Górecki 2018-04-12 23:19:34 +02:00
parent 5e6b8aac02
commit 471523167e
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -314,6 +314,9 @@ class PoolsAction(QubesAction):
except qubesadmin.exc.QubesException as e:
parser.error(str(e))
sys.exit(2)
except KeyError:
parser.error('No such pools: %s' % pool_names)
sys.exit(2)
class QubesArgumentParser(argparse.ArgumentParser):