]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFsp2Pkg/Tools/GenCfgOpt.py
IntelFsp2Pkg: YAML script bug fix
[mirror_edk2.git] / IntelFsp2Pkg / Tools / GenCfgOpt.py
index 660824b7401f475e3fe5441cb8d5f747b5c0ddcb..714b2d8b1a955ba133ede4525b8940f2f0073bfd 100644 (file)
@@ -708,7 +708,8 @@ EndList
                             for Page in PageList:\r
                                 Page  = Page.strip()\r
                                 Match = re.match("(\w+):\"(.+)\"", Page)\r
-                                self._CfgPageDict[Match.group(1)] = Match.group(2)\r
+                                if Match != None:\r
+                                    self._CfgPageDict[Match.group(1)] = Match.group(2)\r
 \r
                         Match = re.match("(?:^|.+\s+)BLOCK:{NAME:\"(.+)\"\s*,\s*VER:\"(.+)\"\s*}", Remaining)\r
                         if Match:\r