From: Gary Lin Date: Mon, 25 Jun 2018 10:31:30 +0000 (+0800) Subject: BaseTools: Replace StandardError with Expression X-Git-Tag: edk2-stable201903~1520 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=92beb1e4c73a40a708c7c0cade5c7cee314b3887;hp=27c4ceb41cf6b79d440deae215c68e117d69d641;ds=sidebyside 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 Cc: Liming Gao Signed-off-by: Gary Lin Reviewed-by: Yonghong Zhu --- 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()