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:
Gary Lin 2018-06-25 18:31:30 +08:00 committed by Yonghong Zhu
parent 27c4ceb41c
commit 92beb1e4c7
1 changed files with 1 additions and 1 deletions

View File

@ -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()