BaseTools:Expression.py Adding a check for missing '}' in the parser

This check is to catch cases where a missing '}' exists in a dec or dsc
file.

Signed-off-by: Doug Flick <dougflick@microsoft.com>
diff --git a/BaseTools/Source/Python/Common/Expression.py b/BaseTools/Source/Python/Common/Expression.py
index 138b38c..f8b34aa 100644
--- a/BaseTools/Source/Python/Common/Expression.py
+++ b/BaseTools/Source/Python/Common/Expression.py
@@ -917,7 +917,7 @@
                                 TmpList.append('0x%02x' % ((TmpValue >> I * 8) & 0xff))

                             PcdValue = '{' + ', '.join(TmpList) + '}'

                     except:

-                        if PcdValue.strip().startswith('{'):

+                        if PcdValue.strip().startswith('{') and PcdValue.strip().endswith('}'):

                             PcdValueList = SplitPcdValueString(PcdValue.strip()[1:-1])

                             LabelDict = {}

                             NewPcdValueList = []