From: Naga Sugguna Date: Wed, 5 Jun 2019 14:53:14 +0000 (-0500) Subject: NoneType fixed X-Git-Tag: 2.0.0~80 X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F48%2F948%2F2;p=validation.git NoneType fixed Change-Id: I6cfbddd6590f11c392113df878ba1faa774d3bcc Signed-off-by: Naga Sugguna --- 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)