mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
27c4ceb41c
commit
92beb1e4c7
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue