From 2f524a745e23e1b4c73ea22b058492bfe4af84c2 Mon Sep 17 00:00:00 2001 From: "Fan, ZhijuX" Date: Fri, 20 Mar 2020 11:57:55 +0800 Subject: [PATCH] BaseTools:Fix build tools print traceback info issue REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2610 We meet a case that the DEC file declaring the PCD isn't included in the INF.it cause build tools report Traceback error. Remove raise statements that generate Tracebacks that were only intended for development/debug. With the raise statements removed proper error messages are shown. Cc: Bob Feng Cc: Liming Gao Signed-off-by: Zhiju.Fan Reviewed-by: Bob Feng --- BaseTools/Source/Python/AutoGen/AutoGenWorker.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/BaseTools/Source/Python/AutoGen/AutoGenWorker.py b/BaseTools/Source/Python/AutoGen/AutoGenWorker.py index 40b448f5b2..563d91b421 100755 --- a/BaseTools/Source/Python/AutoGen/AutoGenWorker.py +++ b/BaseTools/Source/Python/AutoGen/AutoGenWorker.py @@ -256,7 +256,6 @@ class AutoGenWorkerInProcess(mp.Process): CacheResult = Ma.CanSkipbyPreMakeCache() except: CacheResult = False - traceback.print_exc(file=sys.stdout) self.feedback_q.put(taskname) if CacheResult: @@ -273,7 +272,6 @@ class AutoGenWorkerInProcess(mp.Process): CacheResult = Ma.CanSkipbyMakeCache() except: CacheResult = False - traceback.print_exc(file=sys.stdout) self.feedback_q.put(taskname) if CacheResult: @@ -285,7 +283,6 @@ class AutoGenWorkerInProcess(mp.Process): except Empty: pass except: - traceback.print_exc(file=sys.stdout) self.feedback_q.put(taskname) finally: self.feedback_q.put("Done")