summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFan, ZhijuX <zhijux.fan@intel.com>2020-03-20 11:57:55 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-03-24 02:27:27 +0000
commit2f524a745e23e1b4c73ea22b058492bfe4af84c2 (patch)
tree440c55928199fcbd0db8e031d8797d28d423da80
parent0dee1d1358c95e07637876af1f508f0fd694a809 (diff)
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 <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
-rwxr-xr-xBaseTools/Source/Python/AutoGen/AutoGenWorker.py3
1 files changed, 0 insertions, 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")