From e8d760fe817577deae92c372b877507adc100a5f Mon Sep 17 00:00:00 2001 From: Naga Sugguna Date: Wed, 5 Jun 2019 09:53:14 -0500 Subject: [PATCH] NoneType fixed Change-Id: I6cfbddd6590f11c392113df878ba1faa774d3bcc Signed-off-by: Naga Sugguna --- bluval/bluval.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bluval/bluval.py b/bluval/bluval.py index 8ed6bdf..bd89a48 100644 --- a/bluval/bluval.py +++ b/bluval/bluval.py @@ -78,7 +78,8 @@ def main(blueprint, layer): yaml location from blueprint name. Invokes validate on blue print. """ yaml_loc = 'bluval/bluval-{}.yaml'.format(blueprint) - layer = layer.lower() + if layer is not None: + layer = layer.lower() validate_blueprint(yaml_loc, layer) -- 2.16.6