diff options
author | Gary Lin <glin@suse.com> | 2018-06-25 18:31:30 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-06-27 16:33:24 +0800 |
commit | 92beb1e4c73a40a708c7c0cade5c7cee314b3887 (patch) | |
tree | 0e157dcfb762fabe0486ba2a23d075d4b1bbb1b0 /BaseTools/Source/Python/UPT/UPT.py | |
parent | 27c4ceb41cf6b79d440deae215c68e117d69d641 (diff) | |
download | edk2-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/UPT.py')
-rw-r--r-- | BaseTools/Source/Python/UPT/UPT.py | 2 |
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()
|