mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-05 13:14:46 +02:00
dockersetup: handle ArgumentTypeError properly
Print ArgumentTypeError (which we are raising) instead of showing a traceback. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
5e78505dbd
commit
050fbb0878
|
@ -581,7 +581,11 @@ def writefile(filename, data):
|
||||||
|
|
||||||
|
|
||||||
## Get user arguments
|
## Get user arguments
|
||||||
args, socks_proxy_port, socks_proxy_host, email_host, email_port = get_args()
|
try:
|
||||||
|
args, socks_proxy_port, socks_proxy_host, email_host, email_port = get_args()
|
||||||
|
except argparse.ArgumentTypeError as e:
|
||||||
|
print('error: %s' % e)
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if args.update:
|
if args.update:
|
||||||
with open('docker-compose.yml', 'r') as f:
|
with open('docker-compose.yml', 'r') as f:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user