X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fstatic_content.py;h=a02330c15fabcd5b6d71451576024c194a621867;hb=c046d7b7d364abcfdbdfcdbe0df970e55dc9c3f1;hp=fe2d0724bf416e5d8cebd9d0ad78b8c16ee5aa0d;hpb=eecad36d7d2275fa47fbcab40dbcf56108ab0a51;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 ...")