提交 3abcbc30 编写于 作者: S Steven Li

Added additional protection for crash_gen tool, to capture sys.exit() in lower level libraries

上级 cf2bdb4e
...@@ -1239,6 +1239,11 @@ class Task(): ...@@ -1239,6 +1239,11 @@ class Task():
self._err = e self._err = e
self._aborted = True self._aborted = True
traceback.print_exc() traceback.print_exc()
except BaseException as e :
self.logInfo("Python base exception encountered")
self._err = e
self._aborted = True
traceback.print_exc()
except : except :
self.logDebug("[=] Unexpected exception, SQL: {}".format(self._lastSql)) self.logDebug("[=] Unexpected exception, SQL: {}".format(self._lastSql))
raise raise
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册