X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fspecification_parser.py;h=3404024a87f6039f2e014edbc9fa53043b325711;hp=7ee6dbb4868dc9933ec35ec92bd08b48eaebba7b;hb=849e7756a138ff0b52767cb3cfea7aec9941ee91;hpb=6c1043c843b4fcd33e7004876cbced565c222f58 diff --git a/resources/tools/presentation/specification_parser.py b/resources/tools/presentation/specification_parser.py index 7ee6dbb486..3404024a87 100644 --- a/resources/tools/presentation/specification_parser.py +++ b/resources/tools/presentation/specification_parser.py @@ -486,7 +486,7 @@ class Specification(object): pass # add data sets to the elements: - if isinstance(element["data"], str): + if isinstance(element.get("data", None), str): data_set = element["data"] try: element["data"] = self.configuration["data-sets"][data_set] @@ -515,7 +515,7 @@ class Specification(object): element["layout"].pop("layout") try: for key, val in (self.configuration["plot-layouts"] - [layout]): + [layout].items()): element["layout"][key] = val except KeyError: raise PresentationError("Layout {0} is not defined in "