From 83d6207f99021ac9b2990fc9d66bab3cb3ae5f26 Mon Sep 17 00:00:00 2001 From: "Feng, Bob C" Date: Thu, 1 Aug 2019 21:23:43 +0800 Subject: [PATCH] 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 Signed-off-by: Bob Feng Reviewed-by: Jaben Carsey Reviewed-by: Philippe Mathieu-Daude Reviewed-by: Liming Gao --- BaseTools/Source/Python/Trim/Trim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = "" -- 2.39.2