projects
/
mirror_edk2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27c4ceb
)
BaseTools: Replace StandardError with Expression
author
Gary Lin
<glin@suse.com>
Mon, 25 Jun 2018 10:31:30 +0000
(18:31 +0800)
committer
Yonghong Zhu
<yonghong.zhu@intel.com>
Wed, 27 Jun 2018 08:33:24 +0000
(16:33 +0800)
StandardError has been removed from python 3.
Replace it with Exception.
Contributed-under: TianoCore Contribution Agreement 1.1
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
BaseTools/Source/Python/UPT/UPT.py
patch
|
blob
|
blame
|
history
diff --git
a/BaseTools/Source/Python/UPT/UPT.py
b/BaseTools/Source/Python/UPT/UPT.py
index 2644dbed31e9f809f1a1449783d5689c03ea80fb..0e425828cdfe4cfefa63310bd4363aa3c9b65b85 100644
(file)
--- a/
BaseTools/Source/Python/UPT/UPT.py
+++ b/
BaseTools/Source/Python/UPT/UPT.py
@@
-309,7
+309,7
@@
def Main():
else:
\r
GlobalData.gDB.Commit()
\r
Mgr.commit()
\r
- except
StandardError
:
\r
+ except
Exception
:
\r
Logger.Quiet(ST.MSG_RECOVER_FAIL)
\r
GlobalData.gDB.CloseDb()
\r
\r