Enhance EOT tool to make it more robust: Skip the scan of current file when some...
authorqhuang8 <qhuang8@c2973edb-eda0-4c78-bc6a-9341b269661f>
Tue, 23 Mar 2010 09:18:48 +0000 (09:18 +0000)
committerqhuang8 <qhuang8@c2973edb-eda0-4c78-bc6a-9341b269661f>
Tue, 23 Mar 2010 09:18:48 +0000 (09:18 +0000)
git-svn-id: https://edk2-buildtools.svn.sourceforge.net/svnroot/edk2-buildtools/trunk/BaseTools@1940 c2973edb-eda0-4c78-bc6a-9341b269661f

Source/Python/Eot/c.py

index 71d2b62..8b11ed3 100644 (file)
@@ -361,7 +361,7 @@ def CreateCCodeDB(FileNameList):
             collector = CodeFragmentCollector.CodeFragmentCollector(FullName)\r
             try:\r
                 collector.ParseFile()\r
-            except UnicodeError:\r
+            except:\r
                 ParseErrorFileList.append(FullName)\r
             BaseName = os.path.basename(FullName)\r
             DirName = os.path.dirname(FullName)\r