Skip to content

Commit 0723d88

Browse files
AshrafAliSlgao4
authored andcommitted
FMMT Skip empty Lines while parsing FMMTConfig.ini
When the FMMTConf.ini file has empty lines then it used to throw errors GuidTool load error!, this patch is to skip checking for empty lines in the ini file Signed-off-by: Ashraf Ali S <[email protected]>
1 parent 5b7161d commit 0723d88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

edk2basetools/FMMT/core/GuidTools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def LoadingTools(self) -> None:
153153
config_data = fd.readlines()
154154
for line in config_data:
155155
try:
156-
if not line.startswith("#"):
156+
if not line.startswith("#") and line.strip():
157157
guid, short_name, command = line.split()
158158
new_format_guid = struct2stream(ModifyGuidFormat(guid.strip()))
159159
self.tooldef[new_format_guid] = GUIDTool(

0 commit comments

Comments
 (0)