X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fstatic_content.py;h=a02330c15fabcd5b6d71451576024c194a621867;hb=refs%2Fchanges%2F54%2F10454%2F8;hp=fe2d0724bf416e5d8cebd9d0ad78b8c16ee5aa0d;hpb=02f01f9f327cc64745c1941968813b3f107ca771;p=csit.git diff --git a/resources/tools/presentation/static_content.py b/resources/tools/presentation/static_content.py index fe2d0724bf..a02330c15f 100644 --- a/resources/tools/presentation/static_content.py +++ b/resources/tools/presentation/static_content.py @@ -34,8 +34,11 @@ def prepare_static_content(spec): 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 ...")