summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/Ecc
diff options
context:
space:
mode:
authorHess Chen <hesheng.chen@intel.com>2015-06-25 08:05:42 +0000
committerhchen30 <hchen30@Edk2>2015-06-25 08:05:42 +0000
commitce2f5940060c20261a7d22f5ce5c767bb8f298b0 (patch)
treeedf5f3b89344d2053ffdad0cee4f83d3d64f5ef3 /BaseTools/Source/Python/Ecc
parent14239f66034c9fc5ab2e8ae283f9174c4f78f360 (diff)
downloadedk2-platforms-ce2f5940060c20261a7d22f5ce5c767bb8f298b0.tar.xz
BaseTools/Ecc: Fix a bug in parser
Fix a bug to not break when parsing a macro and not find its value Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen <hesheng.chen@intel.com> Reviewed-by: YangX Li <yangx.li@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17709 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'BaseTools/Source/Python/Ecc')
-rw-r--r--BaseTools/Source/Python/Ecc/MetaFileWorkspace/MetaFileParser.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/Ecc/MetaFileWorkspace/MetaFileParser.py b/BaseTools/Source/Python/Ecc/MetaFileWorkspace/MetaFileParser.py
index fc75db38e0..734912f0f1 100644
--- a/BaseTools/Source/Python/Ecc/MetaFileWorkspace/MetaFileParser.py
+++ b/BaseTools/Source/Python/Ecc/MetaFileWorkspace/MetaFileParser.py
@@ -1312,6 +1312,9 @@ class DscParser(MetaFileParser):
File=self._FileWithError, ExtraData=' '.join(self._ValueList),
Line=self._LineIndex+1)
Result = Excpt.result
+ except BadExpression, Exc:
+ EdkLogger.debug(EdkLogger.DEBUG_5, str(Exc), self._ValueList[1])
+ Result = False
if self._ItemType in [MODEL_META_DATA_CONDITIONAL_STATEMENT_IF,
MODEL_META_DATA_CONDITIONAL_STATEMENT_IFDEF,