BaseTools: Replace StandardError with Expression
[mirror_edk2.git] / BaseTools / Source / Python / UPT / UPT.py
index 2644dbed31e9f809f1a1449783d5689c03ea80fb..0e425828cdfe4cfefa63310bd4363aa3c9b65b85 100644 (file)
@@ -309,7 +309,7 @@ def Main():
             else:\r
                 GlobalData.gDB.Commit()\r
                 Mgr.commit()\r
             else:\r
                 GlobalData.gDB.Commit()\r
                 Mgr.commit()\r
-        except StandardError:\r
+        except Exception:\r
             Logger.Quiet(ST.MSG_RECOVER_FAIL)\r
         GlobalData.gDB.CloseDb()\r
 \r
             Logger.Quiet(ST.MSG_RECOVER_FAIL)\r
         GlobalData.gDB.CloseDb()\r
 \r