summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFeng, Bob C <bob.c.feng@intel.com>2019-08-01 21:23:43 +0800
committerLiming Gao <liming.gao@intel.com>2019-08-02 00:18:00 +0800
commit83d6207f99021ac9b2990fc9d66bab3cb3ae5f26 (patch)
treedef68ea034c258f57a0f8e0540cb4e8efbad7470
parent101dc9e257d6a481c47b1662de8567bf6b818b9c (diff)
downloadedk2-83d6207f99021ac9b2990fc9d66bab3cb3ae5f26.tar.gz
edk2-83d6207f99021ac9b2990fc9d66bab3cb3ae5f26.tar.bz2
edk2-83d6207f99021ac9b2990fc9d66bab3cb3ae5f26.zip
BaseTools: Fixed a typo in Trim.py
This is a regression issue introduced by commit 307e1650be267b67db7be1089e0979ace460d83 This patch is to fix this issue. Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Bob Feng <bob.c.feng@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
-rw-r--r--BaseTools/Source/Python/Trim/Trim.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Trim/Trim.py b/BaseTools/Source/Python/Trim/Trim.py
index 8767b67f7e..24c3fafa76 100644
--- a/BaseTools/Source/Python/Trim/Trim.py
+++ b/BaseTools/Source/Python/Trim/Trim.py
@@ -75,7 +75,7 @@ def TrimPreprocessedFile(Source, Target, ConvertHex, TrimLong):
Lines = File.readlines()
except IOError:
EdkLogger.error("Trim", FILE_OPEN_FAILURE, ExtraData=Source)
- expect:
+ except:
EdkLogger.error("Trim", AUTOGEN_ERROR, "TrimPreprocessedFile: Error while processing file", File=Source)
PreprocessedFile = ""