Change-Id: I7aa196cdc7bf4d34c1313f8f811ab3f6dd8f10f2
Signed-off-by: Tibor Frank <tifrank@cisco.com>
except (KeyError, IndexError, ValueError) as err:
logging.error(" Missing mandatory parameter in the element "
- "specification.", err)
+ "specification: {0}".format(err))
return None
except AttributeError:
return None
content.
"""
- src = spec.static["src-path"]
- dst = spec.static["dst-path"]
+ src = spec.static.get("src-path", None)
+ dst = spec.static.get("dst-path", None)
+ if src is None or dst is None:
+ logging.warning("No static content specified, skipping")
+ return
# Copy all the static content to the build directory:
logging.info("Copying the static content ...")