summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/UPT
diff options
context:
space:
mode:
authorGary Lin <glin@suse.com>2018-06-25 18:31:30 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-06-27 16:33:24 +0800
commit92beb1e4c73a40a708c7c0cade5c7cee314b3887 (patch)
tree0e157dcfb762fabe0486ba2a23d075d4b1bbb1b0 /BaseTools/Source/Python/UPT
parent27c4ceb41cf6b79d440deae215c68e117d69d641 (diff)
downloadedk2-92beb1e4c73a40a708c7c0cade5c7cee314b3887.tar.gz
edk2-92beb1e4c73a40a708c7c0cade5c7cee314b3887.tar.bz2
edk2-92beb1e4c73a40a708c7c0cade5c7cee314b3887.zip
BaseTools: Replace StandardError with Expression
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>
Diffstat (limited to 'BaseTools/Source/Python/UPT')
-rw-r--r--BaseTools/Source/Python/UPT/UPT.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/UPT/UPT.py b/BaseTools/Source/Python/UPT/UPT.py
index 2644dbed31..0e425828cd 100644
--- a/BaseTools/Source/Python/UPT/UPT.py
+++ b/BaseTools/Source/Python/UPT/UPT.py
@@ -309,7 +309,7 @@ def Main():
else:
GlobalData.gDB.Commit()
Mgr.commit()
- except StandardError:
+ except Exception:
Logger.Quiet(ST.MSG_RECOVER_FAIL)
GlobalData.gDB.CloseDb()